Skip to content

Instantly share code, notes, and snippets.

@ennioma
Last active July 6, 2017 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ennioma/f80a7596b531c67712d8bb80e01f2e6e to your computer and use it in GitHub Desktop.
Save ennioma/f80a7596b531c67712d8bb80e01f2e6e to your computer and use it in GitHub Desktop.
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