Rework initialization of fixtureBundle

This commit is contained in:
Blake Watters
2012-03-12 19:03:44 -04:00
parent b8d9a0a423
commit f31b586dae

View File

@@ -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