Created
August 25, 2016 07:50
-
-
Save 3lvis/33abced2924fed6e74d2b608f0e9f9d7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 testBug260SnakeCase() { | |
let dataStack = Helper.dataStackWithModelName("ToOne") | |
let JSON = Helper.objectsFromJSON("to-one-snakecase.json") as! [String : AnyObject] | |
Sync.changes([JSON], inEntityNamed: "RentedHome", dataStack: dataStack, completion: nil) | |
XCTAssertEqual(Helper.countForEntity("RentedHome", inContext:dataStack.mainContext), 1) | |
XCTAssertEqual(Helper.countForEntity("LegalPerson", inContext:dataStack.mainContext), 1) | |
try! dataStack.drop() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment