mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-14 12:53:36 +01:00
WIP: error handling
This commit is contained in:
1 parent
e8a9cc9d67
commit
24008d62b2
3 files changed
+33
-42
No files matched your search
@@ -44,10 +44,6 @@ class CoreStoreTests: XCTestCase {
|
||||
|
||||
func testExample() {
|
||||
|
||||
let err = CoreStoreError.DifferentStorageExistsAtURL(existingPersistentStoreURL: NSURL(string: "http://google.com")!)
|
||||
let err1 = err as NSError
|
||||
let err2 = err1 as! CoreStoreError
|
||||
|
||||
let stack = DataStack(modelName: "Model", bundle: NSBundle(forClass: self.dynamicType))
|
||||
CoreStore.defaultStack = stack
|
||||
XCTAssert(CoreStore.defaultStack === stack, "CoreStore.defaultStack === stack")
|
||||
|
||||
Reference in new issue
Block a user