WIP: documentation and unit tests

This commit is contained in:
John Rommel Estropia
2016-03-12 20:13:38 +09:00
parent 8a1144b1be
commit 603dffffb0
21 changed files with 760 additions and 65 deletions

View File

@@ -397,7 +397,7 @@ public final class DataStack {
public func addInMemoryStoreAndWait(configuration configuration: String? = nil) throws -> NSPersistentStore {
let storage = try self.addStorageAndWait(InMemoryStore(configuration: configuration))
return storage.internalStore!
return self.persistentStoreForStorage(storage)!
}
/**
@@ -415,7 +415,7 @@ public final class DataStack {
resetStoreOnModelMismatch: resetStoreOnModelMismatch
)
)
return storage.internalStore!
return self.persistentStoreForStorage(storage)!
}
/**
@@ -433,6 +433,6 @@ public final class DataStack {
resetStoreOnModelMismatch: resetStoreOnModelMismatch
)
)
return storage.internalStore!
return self.persistentStoreForStorage(storage)!
}
}