-
-
Save ennioma/f80a7596b531c67712d8bb80e01f2e6e to your computer and use it in GitHub Desktop.
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