Cleaned up warnings

This commit is contained in:
Blake Watters
2011-03-25 10:39:39 -04:00
parent 6e6144dc26
commit 92d56da684
3 changed files with 6 additions and 6 deletions

View File

@@ -7,6 +7,7 @@
//
#import "RKSpecEnvironment.h"
#import "RKManagedObjectStore.h"
#import "RKHuman.h"
@interface RKDynamicRouterSpec : NSObject <UISpec> {
@@ -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 {

View File

@@ -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);

View File

@@ -41,6 +41,5 @@
// Wait for a response to load
- (void)waitForResponse;
- (void)loadResponse:(id)response;
@end