mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-27 22:41:10 +08:00
Strip trailing whitespace. Refs #614
This commit is contained in:
@@ -78,7 +78,7 @@ static RKTestFactory *sharedFactory = nil;
|
||||
{
|
||||
[self defineFactory:RKTestFactoryDefaultNamesClient withBlock:^id {
|
||||
__block RKClient *client;
|
||||
|
||||
|
||||
RKLogSilenceComponentWhileExecutingBlock(lcl_cRestKitNetworkReachability, ^{
|
||||
RKLogSilenceComponentWhileExecutingBlock(lcl_cRestKitSupport, ^{
|
||||
client = [RKClient clientWithBaseURL:self.baseURL];
|
||||
@@ -92,13 +92,13 @@ static RKTestFactory *sharedFactory = nil;
|
||||
|
||||
[self defineFactory:RKTestFactoryDefaultNamesObjectManager withBlock:^id {
|
||||
__block RKObjectManager *objectManager;
|
||||
|
||||
|
||||
RKLogSilenceComponentWhileExecutingBlock(lcl_cRestKitNetworkReachability, ^{
|
||||
RKLogSilenceComponentWhileExecutingBlock(lcl_cRestKitSupport, ^{
|
||||
objectManager = [RKObjectManager managerWithBaseURL:self.baseURL];
|
||||
RKObjectMappingProvider *mappingProvider = [self objectFromFactory:RKTestFactoryDefaultNamesMappingProvider];
|
||||
objectManager.mappingProvider = mappingProvider;
|
||||
|
||||
|
||||
// Force reachability determination
|
||||
[objectManager.client.reachabilityObserver getFlags];
|
||||
});
|
||||
@@ -206,7 +206,7 @@ static RKTestFactory *sharedFactory = nil;
|
||||
{
|
||||
[RKObjectManager setDefaultMappingQueue:dispatch_queue_create("org.restkit.ObjectMapping", DISPATCH_QUEUE_SERIAL)];
|
||||
[RKObjectMapping setDefaultDateFormatters:nil];
|
||||
|
||||
|
||||
// Delete the store if it exists
|
||||
NSString *path = [[RKDirectory applicationDataDirectory] stringByAppendingPathComponent:RKTestFactoryDefaultStoreFilename];
|
||||
if ([[NSFileManager defaultManager] fileExistsAtPath:path]) {
|
||||
|
||||
Reference in New Issue
Block a user