mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-22 11:46:05 +08:00
Normalized the bundle identifier for Logic and Application Tests to 'org.restkit.tests'
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user