fix test error humanMapping.primaryKeyAttribute set incorrectly

This commit is contained in:
Ray Fix
2011-12-11 01:15:09 -08:00
parent f23b242e87
commit d95338bf45

View File

@@ -81,7 +81,7 @@
RKManagedObjectMapping* humanMapping = [RKManagedObjectMapping mappingForEntityWithName:@"RKHuman"];
[humanMapping mapKeyPath:@"id" toAttribute:@"railsID"];
[humanMapping mapAttributes:@"name", nil];
humanMapping.primaryKeyAttribute = @"id";
humanMapping.primaryKeyAttribute = @"railsID";
// Create 3 objects, we will expect 2 after the load
[RKHuman truncateAll];
@@ -123,7 +123,7 @@
RKManagedObjectMapping* humanMapping = [RKManagedObjectMapping mappingForEntityWithName:@"RKHuman"];
[humanMapping mapKeyPath:@"id" toAttribute:@"railsID"];
[humanMapping mapAttributes:@"name", nil];
humanMapping.primaryKeyAttribute = @"id";
humanMapping.primaryKeyAttribute = @"railsID";
// Create 4 objects, we will expect 4 after the load
[RKHuman truncateAll];