Expanded specs and began migrating all the content for testing out in the Fixtures directory. Fixtures is now the root for the Sinatra app and there are new helpers in RKSpecEnvironment.m. Added specs for several users use cases from the mailing list. Introduced a new warning when attempting to map did not set any properties.

This commit is contained in:
Blake Watters
2011-05-02 20:57:18 -04:00
parent 81bc082a2a
commit 4321da03b1
20 changed files with 823 additions and 112 deletions

View File

@@ -140,7 +140,7 @@ static RKObjectManager* sharedManager = nil;
RKObjectLoader* objectLoader = nil;
Class managedObjectLoaderClass = NSClassFromString(@"RKManagedObjectLoader");
if (managedObjectLoaderClass) {
if (self.objectStore && managedObjectLoaderClass) {
objectLoader = [managedObjectLoaderClass loaderWithResourcePath:resourcePath objectManager:self delegate:delegate];
} else {
objectLoader = [RKObjectLoader loaderWithResourcePath:resourcePath objectManager:self delegate:delegate];