Fix broken iOS tests

This commit is contained in:
Emily Toop 2018-08-06 17:41:06 +01:00 committed by Grisha Kruglov
parent d61e070e08
commit fe1a034822

View file

@ -35,10 +35,8 @@ class MentatTests: XCTestCase {
// test that a store can be opened in a specific location
func testOpenStoreInLocation() {
let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
let documentsURL = paths[0]
let storeURI = documentsURL.appendingPathComponent("test.db", isDirectory: false).absoluteString
let documentsURL = NSURL(fileURLWithPath: NSTemporaryDirectory())
let storeURI = documentsURL.appendingPathComponent("test.db", isDirectory: false)!.absoluteString
XCTAssertNotNil(try Mentat.open(storeURI: storeURI).raw)
}