From 82568172d8cc43265842755c46ce1636a5fafea9 Mon Sep 17 00:00:00 2001 From: Matt Comi Date: Tue, 12 Apr 2016 08:35:13 +0800 Subject: [PATCH] Test now creates DocumentDirectory --- PersistentObjectTests/PersistentObjectTests.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PersistentObjectTests/PersistentObjectTests.swift b/PersistentObjectTests/PersistentObjectTests.swift index f283384..74df4ba 100644 --- a/PersistentObjectTests/PersistentObjectTests.swift +++ b/PersistentObjectTests/PersistentObjectTests.swift @@ -120,6 +120,14 @@ class PersistentObjectTests: XCTestCase { } func testFile() { + do { + try NSFileManager.defaultManager().createDirectoryAtURL( + documentsDirectory(), + withIntermediateDirectories: true, + attributes: nil) + } catch { + } + print(documentsDirectory()) print(filename) let strategy = FileStrategy(filename: filename)