Skip to content

Commit

Permalink
Test now creates DocumentDirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Comi authored and Matt Comi committed Apr 12, 2016
1 parent 63a7613 commit 8256817
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions PersistentObjectTests/PersistentObjectTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<Person>(filename: filename)
Expand Down

0 comments on commit 8256817

Please sign in to comment.