mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-28 20:55:32 +08:00
Rework initialization of fixtureBundle
This commit is contained in:
@@ -99,14 +99,10 @@ void RKTestSpinRunLoop() {
|
||||
|
||||
@implementation RKTestCase
|
||||
|
||||
- (void) invokeTest {
|
||||
// Ensure the fixture bundle is configured
|
||||
if (! [RKTestFixture fixtureBundle]) {
|
||||
NSBundle *fixtureBundle = [NSBundle bundleWithIdentifier:@"org.restkit.unit-tests"];
|
||||
[RKTestFixture setFixtureBundle:fixtureBundle];
|
||||
}
|
||||
|
||||
[super invokeTest];
|
||||
+ (void)initialize
|
||||
{
|
||||
NSBundle *fixtureBundle = [NSBundle bundleWithIdentifier:@"org.restkit.unit-tests"];
|
||||
[RKTestFixture setFixtureBundle:fixtureBundle];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user