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

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

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)