Update test to run against local test server instead of restkit.org

This commit is contained in:
Blake Watters
2012-12-24 18:00:20 -05:00
parent 78e55c90a2
commit ea304c5ec4

View File

@@ -551,13 +551,10 @@ NSSet *RKSetByRemovingSubkeypathsFromSet(NSSet *setOfKeyPaths);
RKResponseDescriptor *responseDescriptor = [RKResponseDescriptor responseDescriptorWithMapping:mapping pathPattern:nil keyPath:@"human" statusCodes:nil];
// NSURL *URL = [NSURL URLWithString:@"humans/1" relativeToURL:[RKTestFactory baseURL]];
[RKMIMETypeSerialization registerClass:[RKNSJSONSerialization class] forMIMEType:@"text/plain"];
NSURL *URL = [NSURL URLWithString:@"http://restkit.org/human_1.json"];
NSURL *URL = [NSURL URLWithString:@"humans/1" relativeToURL:[RKTestFactory baseURL]];
// [RKMIMETypeSerialization registerClass:[RKNSJSONSerialization class] forMIMEType:@"text/plain"];
// NSURL *URL = [NSURL URLWithString:@"http://restkit.org/human_1.json"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:URL];
// [request setCachePolicy:NSURLRequestReturnCacheDataDontLoad];
// NSData *JSON = [RKTestFixture dataWithContentsOfFixture:@"1.json"];
// [RKTestHelpers cacheResponseForRequest:request withResponseData:JSON];
RKManagedObjectRequestOperation *firstOperation = [[RKManagedObjectRequestOperation alloc] initWithRequest:request responseDescriptors:@[ responseDescriptor ]];
firstOperation.managedObjectContext = managedObjectStore.persistentStoreManagedObjectContext;