Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
func testSaveRecord() {
let record = PFARecord()
record.title = "Unexpected expense"
record.price = 1.0
let category = PFACategory()
category.title = "A category"
record.category = category
do {
try self.storage?.save(object: record)
} catch _ as NSError {
XCTFail("Impossible to save the current record")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment