Skip to content

Instantly share code, notes, and snippets.


ennioma/test_save_record.swift Secret

Last active Jul 6, 2017
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 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