mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-29 13:15:34 +08:00
Miscellaneous cleanups
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
objectManager.objectStore = objectStore;
|
||||
RKHuman* human = [RKHuman createEntity];
|
||||
human.railsID = [NSNumber numberWithInt:1234];
|
||||
[objectStore save];
|
||||
[objectStore save:nil];
|
||||
NSManagedObject* newReference = [objectStore findOrCreateInstanceOfEntity:[RKHuman entity] withPrimaryKeyAttribute:@"railsID" andValue:@"1234"];
|
||||
assertThat(newReference, is(equalTo(human)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user