smart way to load entityNames from the model file

This commit is contained in:
John Rommel Estropia
2015-02-22 22:01:23 +09:00
parent f6ced13577
commit 8f77818015
8 changed files with 88 additions and 44 deletions

View File

@@ -43,7 +43,7 @@ class HardcoreDataTests: XCTestCase {
let stack = DataStack()
HardcoreData.defaultStack = stack
XCTAssertEqual(HardcoreData.defaultStack, stack, "HardcoreData.defaultStack == stack")
XCTAssert(HardcoreData.defaultStack === stack, "HardcoreData.defaultStack === stack")
switch stack.addSQLiteStore("Config1Store.sqlite", configuration: "Config1", resetStoreOnMigrationFailure: true){
@@ -99,7 +99,7 @@ class HardcoreDataTests: XCTestCase {
}
let queryExpectation = self.expectationWithDescription("Query creation")
HardcoreData.performTransaction{ (transaction) -> Void in
HardcoreData.performTransaction { (transaction) -> Void in
let obj1 = transaction.fetchOne(TestEntity1)
XCTAssertNotNil(obj1, "obj1 != nil")
@@ -130,6 +130,6 @@ class HardcoreDataTests: XCTestCase {
}
}
self.waitForExpectationsWithTimeout(10, handler: nil)
self.waitForExpectationsWithTimeout(100, handler: nil)
}
}