/test_save_record.swift Secret
Last active
July 6, 2017 21:16
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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