Skip to content

Commit

Permalink
Don't escape path string twice; fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
casademora committed Nov 15, 2011
1 parent b253cc8 commit 4f63c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Unit Tests/NSPersisentStoreHelperTests.m
Expand Up @@ -13,13 +13,13 @@ @implementation NSPersisentStoreHelperTests
- (NSString *) applicationStorageDirectory
{
NSString *appSupportDirectory = [NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES) lastObject];
appSupportDirectory = [[appSupportDirectory stringByAppendingPathComponent:@"iOS App Unit Tests"] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
appSupportDirectory = [appSupportDirectory stringByAppendingPathComponent:@"iOS App Unit Tests"];
return appSupportDirectory;
}

#if TARGET_OS_IPHONE

- (void) testDefaultStoreFolderForiOSDevicesIsTheLibraryFolder
- (void) testDefaultStoreFolderForiOSDevicesIsTheApplicationSupportFolder
{
NSString *applicationLibraryDirectory = [self applicationStorageDirectory];
NSString *defaultStoreName = kMagicalRecordDefaultStoreFileName;
Expand Down

0 comments on commit 4f63c79

Please sign in to comment.