Skip to content

Commit

Permalink
Add an empty spec for NSManagedObject+MagicalDataImport
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyarnold committed Aug 20, 2013
1 parent 53fba5c commit cb59d04
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Project Files/MagicalRecord.xcodeproj/project.pbxproj
Expand Up @@ -76,6 +76,8 @@
909B48CB17C2EC7E00CE8C5E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 909B48CA17C2EC7E00CE8C5E /* UIKit.framework */; }; 909B48CB17C2EC7E00CE8C5E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 909B48CA17C2EC7E00CE8C5E /* UIKit.framework */; };
909B48CC17C2EC8700CE8C5E /* libExpecta-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C7CF9B03174988D0008D9D13 /* libExpecta-iOS.a */; }; 909B48CC17C2EC8700CE8C5E /* libExpecta-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C7CF9B03174988D0008D9D13 /* libExpecta-iOS.a */; };
909B48CD17C2EC8700CE8C5E /* libSpecta-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 909B48C117C2EB4400CE8C5E /* libSpecta-iOS.a */; }; 909B48CD17C2EC8700CE8C5E /* libSpecta-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 909B48C117C2EB4400CE8C5E /* libSpecta-iOS.a */; };
90D4B0E817C436E00043AB41 /* NSManagedObject+MagicalDataImportSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 90D4B0E717C436E00043AB41 /* NSManagedObject+MagicalDataImportSpec.m */; };
90D4B0E917C436E00043AB41 /* NSManagedObject+MagicalDataImportSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 90D4B0E717C436E00043AB41 /* NSManagedObject+MagicalDataImportSpec.m */; };
C7CF97AC17498414008D9D13 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C721C7E313D0C3A00097AB6F /* Foundation.framework */; }; C7CF97AC17498414008D9D13 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C721C7E313D0C3A00097AB6F /* Foundation.framework */; };
C7CF97C617498493008D9D13 /* MagicalImportFunctions.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD729D150F832A00216827 /* MagicalImportFunctions.m */; }; C7CF97C617498493008D9D13 /* MagicalImportFunctions.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD729D150F832A00216827 /* MagicalImportFunctions.m */; };
C7CF97C717498493008D9D13 /* NSEntityDescription+MagicalDataImport.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD72A1150F832A00216827 /* NSEntityDescription+MagicalDataImport.m */; }; C7CF97C717498493008D9D13 /* NSEntityDescription+MagicalDataImport.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD72A1150F832A00216827 /* NSEntityDescription+MagicalDataImport.m */; };
Expand Down Expand Up @@ -294,6 +296,7 @@
909B48AF17C2EB4300CE8C5E /* Specta.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Specta.xcodeproj; path = Specta/Specta.xcodeproj; sourceTree = "<group>"; }; 909B48AF17C2EB4300CE8C5E /* Specta.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Specta.xcodeproj; path = Specta/Specta.xcodeproj; sourceTree = "<group>"; };
909B48C817C2EB5C00CE8C5E /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; 909B48C817C2EB5C00CE8C5E /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
909B48CA17C2EC7E00CE8C5E /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 909B48CA17C2EC7E00CE8C5E /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; };
90D4B0E717C436E00043AB41 /* NSManagedObject+MagicalDataImportSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSManagedObject+MagicalDataImportSpec.m"; sourceTree = "<group>"; };
90DD201E167AA4350033BA25 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; }; 90DD201E167AA4350033BA25 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
C721C7E213D0C3A00097AB6F /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; C721C7E213D0C3A00097AB6F /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
C721C7E313D0C3A00097AB6F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; C721C7E313D0C3A00097AB6F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -644,6 +647,7 @@
909948FC17C2F08B00BC2B5C /* Needs Porting */, 909948FC17C2F08B00BC2B5C /* Needs Porting */,
90171E1F17C3300500E7084A /* NSManagedObject+MagicalRecordSpec.m */, 90171E1F17C3300500E7084A /* NSManagedObject+MagicalRecordSpec.m */,
9099490017C2F0B700BC2B5C /* NSManagedObjectContext+MagicalSavesSpec.m */, 9099490017C2F0B700BC2B5C /* NSManagedObjectContext+MagicalSavesSpec.m */,
90D4B0E717C436E00043AB41 /* NSManagedObject+MagicalDataImportSpec.m */,
); );
path = Core; path = Core;
sourceTree = "<group>"; sourceTree = "<group>";
Expand Down Expand Up @@ -1149,6 +1153,7 @@
9099490217C2F0B700BC2B5C /* MagicalRecord+ActionsSpec.m in Sources */, 9099490217C2F0B700BC2B5C /* MagicalRecord+ActionsSpec.m in Sources */,
9099494B17C2F42100BC2B5C /* _SingleEntityWithNoRelationships.m in Sources */, 9099494B17C2F42100BC2B5C /* _SingleEntityWithNoRelationships.m in Sources */,
90171E1B17C329CC00E7084A /* FixtureHelpers.m in Sources */, 90171E1B17C329CC00E7084A /* FixtureHelpers.m in Sources */,
90D4B0E817C436E00043AB41 /* NSManagedObject+MagicalDataImportSpec.m in Sources */,
9099490A17C2F3D400BC2B5C /* TestModel.xcdatamodeld in Sources */, 9099490A17C2F3D400BC2B5C /* TestModel.xcdatamodeld in Sources */,
9099495917C2F42100BC2B5C /* SingleEntityRelatedToMappedEntityUsingDefaults.m in Sources */, 9099495917C2F42100BC2B5C /* SingleEntityRelatedToMappedEntityUsingDefaults.m in Sources */,
9099494517C2F42100BC2B5C /* _SingleEntityRelatedToMappedEntityUsingMappedPrimaryKey.m in Sources */, 9099494517C2F42100BC2B5C /* _SingleEntityRelatedToMappedEntityUsingMappedPrimaryKey.m in Sources */,
Expand Down Expand Up @@ -1183,6 +1188,7 @@
9099490317C2F0B700BC2B5C /* MagicalRecord+ActionsSpec.m in Sources */, 9099490317C2F0B700BC2B5C /* MagicalRecord+ActionsSpec.m in Sources */,
9099494C17C2F42100BC2B5C /* _SingleEntityWithNoRelationships.m in Sources */, 9099494C17C2F42100BC2B5C /* _SingleEntityWithNoRelationships.m in Sources */,
90171E1C17C329CD00E7084A /* FixtureHelpers.m in Sources */, 90171E1C17C329CD00E7084A /* FixtureHelpers.m in Sources */,
90D4B0E917C436E00043AB41 /* NSManagedObject+MagicalDataImportSpec.m in Sources */,
9099490B17C2F3D400BC2B5C /* TestModel.xcdatamodeld in Sources */, 9099490B17C2F3D400BC2B5C /* TestModel.xcdatamodeld in Sources */,
9099495A17C2F42100BC2B5C /* SingleEntityRelatedToMappedEntityUsingDefaults.m in Sources */, 9099495A17C2F42100BC2B5C /* SingleEntityRelatedToMappedEntityUsingDefaults.m in Sources */,
9099494617C2F42100BC2B5C /* _SingleEntityRelatedToMappedEntityUsingMappedPrimaryKey.m in Sources */, 9099494617C2F42100BC2B5C /* _SingleEntityRelatedToMappedEntityUsingMappedPrimaryKey.m in Sources */,
Expand Down
33 changes: 33 additions & 0 deletions Project Files/Tests/Core/NSManagedObject+MagicalDataImportSpec.m
@@ -0,0 +1,33 @@
//
// NSManagedObject+MagicalDataImportSpec.m
// MagicalRecord
//
// Created by Tony Arnold on 21/08/2013.
// Copyright 2013 Magical Panda Software LLC. All rights reserved.
//

#import "Specta.h"
#define EXP_SHORTHAND
#import "Expecta.h"

#import "NSManagedObject+MagicalDataImport.h"

SpecBegin(NSManagedObjectMagicalDataImport)

describe(@"NSManagedObject+MagicalDataImport", ^{
beforeAll(^{
[MagicalRecord setDefaultModelFromClass:[self class]];
[MagicalRecord setupCoreDataStackWithInMemoryStore];
});

afterEach(^{
[NSManagedObjectContext MR_resetContextForCurrentThread];
[NSManagedObjectContext MR_resetDefaultContext];
});

afterAll(^{
[MagicalRecord cleanUp];
});
});

SpecEnd

0 comments on commit cb59d04

Please sign in to comment.