Fix broken iOS tests

This commit is contained in:
Emily Toop 2018-08-06 17:41:06 +01:00
parent c0d28a0448
commit 9c549e19d1

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)
}