diff --git a/Specs/ObjectMapping/RKDynamicRouterSpec.m b/Specs/ObjectMapping/RKDynamicRouterSpec.m index 4c02021d..5487c841 100644 --- a/Specs/ObjectMapping/RKDynamicRouterSpec.m +++ b/Specs/ObjectMapping/RKDynamicRouterSpec.m @@ -7,6 +7,7 @@ // #import "RKSpecEnvironment.h" +#import "RKManagedObjectStore.h" #import "RKHuman.h" @interface RKDynamicRouterSpec : NSObject { @@ -18,7 +19,7 @@ - (void)beforeAll { RKObjectManager* objectManager = [RKObjectManager objectManagerWithBaseURL:@"http://localhost:3001"]; - objectManager.objectStore = [[RKManagedObjectStore alloc] initWithStoreFilename:@"RestKitSpecs.sqlite"]; + objectManager.objectStore = [RKManagedObjectStore objectStoreWithStoreFilename:@"RestKitSpecs.sqlite"]; } -(void)itShouldThrowAnExceptionWhenAskedForAPathForAnUnregisteredClassAndMethod { diff --git a/Specs/ObjectMapping/RKObjectMapperSpec.m b/Specs/ObjectMapping/RKObjectMapperSpec.m index 68a8e365..09c6cbca 100644 --- a/Specs/ObjectMapping/RKObjectMapperSpec.m +++ b/Specs/ObjectMapping/RKObjectMapperSpec.m @@ -80,7 +80,7 @@ - (void)itShouldMapWhenGivenAClassAndElements { RKObjectMapper* mapper = [[RKObjectMapper alloc] init]; mapper.format = RKMappingFormatJSON; - RKObjectMapperSpecUser* user = [mapper mapFromString:[self userJSON] toClass:[RKObjectMapperSpecUser class] keyPath:@"user"]; + RKObjectMapperSpecUser* user = (RKObjectMapperSpecUser*) [mapper mapFromString:[self userJSON] toClass:[RKObjectMapperSpecUser class] keyPath:@"user"]; [expectThat(user.name) should:be(@"mimi")]; } @@ -88,7 +88,7 @@ RKObjectMapper* mapper = [[RKObjectMapper alloc] init]; [mapper registerClass:[RKObjectMapperSpecUser class] forElementNamed:@"user"]; mapper.format = RKMappingFormatJSON; - RKObjectMapperSpecUser* user = [mapper mapFromString:[self userJSON] toClass:nil keyPath:nil]; + RKObjectMapperSpecUser* user = (RKObjectMapperSpecUser*) [mapper mapFromString:[self userJSON] toClass:nil keyPath:nil]; [expectThat(user.name) should:be(@"mimi")]; } @@ -511,7 +511,7 @@ RKObjectMapper* mapper = [[RKObjectMapper alloc] init]; mapper.format = RKMappingFormatJSON; - NSArray* array = [mapper mapFromString:[self JSON] toClass:[RKPath class] keyPath:nil]; + NSArray* array = (NSArray*) [mapper mapFromString:[self JSON] toClass:[RKPath class] keyPath:nil]; [expectThat([array isKindOfClass:[NSArray class]]) should:be(YES)]; [expectThat([array count]) should:be(3)]; NSLog(@"Array is %@", array); @@ -524,7 +524,7 @@ mapper.format = RKMappingFormatJSON; [mapper registerClass:[RKPoint class] forElementNamed:@"route"]; - NSArray* array = [mapper mapFromString:[self JSON] toClass:[RKModeledPath class] keyPath:nil]; + NSArray* array = (NSArray*) [mapper mapFromString:[self JSON] toClass:[RKModeledPath class] keyPath:nil]; [expectThat([array isKindOfClass:[NSArray class]]) should:be(YES)]; [expectThat([array count]) should:be(3)]; NSLog(@"[Modeled] Array is %@", array); diff --git a/Specs/Runner/RKSpecResponseLoader.h b/Specs/Runner/RKSpecResponseLoader.h index c86c3c75..b8c21291 100644 --- a/Specs/Runner/RKSpecResponseLoader.h +++ b/Specs/Runner/RKSpecResponseLoader.h @@ -41,6 +41,5 @@ // Wait for a response to load - (void)waitForResponse; -- (void)loadResponse:(id)response; @end