fixed internal errors getting thrown as .Unknown instead of .InternalError (fixes #84)

This commit is contained in:
John Estropia committed 2016-07-21 11:51:49 +09:00
1 parent 7fc3ad2890
commit e4b6c06401
2 files changed
+20 -7

No files matched your search

+1 -1
View File
@@ -147,7 +147,7 @@ final class ErrorTests: XCTestCase {
"key3": NSDate()
]
)
let error = CoreStoreError.InternalError(NSError: internalError)
let error = CoreStoreError(internalError)
XCTAssertEqual((error as NSError).domain, CoreStoreErrorDomain)
XCTAssertEqual((error as NSError).code, CoreStoreErrorCode.InternalError.rawValue)