mirror of
https://github.com/zhigang1992/MagicalRecord.git
synced 2026-01-12 17:32:18 +08:00
Fix unit tests
This commit is contained in:
@@ -32,7 +32,7 @@ static NSManagedObjectContext *defaultManageObjectContext_ = nil;
|
||||
|
||||
- (NSString *) MR_description;
|
||||
{
|
||||
NSString *contextName = (self == [[self class] MR_defaultContext]) ? @"*** DEFAULT ***" : @"";
|
||||
NSString *contextName = (self == defaultManageObjectContext_) ? @"*** DEFAULT ***" : @"";
|
||||
NSString *onMainThread = [NSThread isMainThread] ? @"*** MAIN THREAD ***" : @"";
|
||||
|
||||
return [NSString stringWithFormat:@"%@: %@ Context %@", [self description], contextName, onMainThread];
|
||||
@@ -75,7 +75,7 @@ static NSManagedObjectContext *defaultManageObjectContext_ = nil;
|
||||
|
||||
+ (void) MR_initializeDefaultContextWithCoordinator:(NSPersistentStoreCoordinator *)coordinator;
|
||||
{
|
||||
if ([self MR_defaultContext] == nil)
|
||||
if (defaultManageObjectContext_ == nil)
|
||||
{
|
||||
NSManagedObjectContext *rootContext = [self MR_contextWithStoreCoordinator:coordinator];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user