Normalized the bundle identifier for Logic and Application Tests to 'org.restkit.tests'

This commit is contained in:
Blake Watters
2012-04-06 09:50:19 -04:00
parent b18abc04ed
commit 515a8dfcfb
9 changed files with 23 additions and 18 deletions

View File

@@ -45,6 +45,14 @@
*/
+ (void)setFixtureBundle:(NSBundle *)bundle;
/**
Returns the full path to the specified fixture file on within the fixture bundle.
@param fixtureName The name of the fixture file.
@return The full path to the specified fixture file or nil if it cannot be located.
*/
+ (NSString *)pathForFixture:(NSString *)fixtureName;
#if TARGET_OS_IPHONE
/**
Creates and returns an image object by loading the image data from the fixture identified by the specified file name.

View File

@@ -37,6 +37,10 @@ static NSBundle *fixtureBundle = nil;
fixtureBundle = bundle;
}
+ (NSString *)pathForFixture:(NSString *)fixtureName {
return [[self fixtureBundle] pathForResource:fixtureName ofType:nil];
}
#if TARGET_OS_IPHONE
+ (UIImage *)imageWithContentsOfFixture:(NSString *)fixtureName {
return [[self fixtureBundle] imageWithContentsOfResource:fixtureName withExtension:nil];