Skip to content

Instantly share code, notes, and snippets.

@3lvis
Created August 25, 2016 07:50
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 3lvis/33abced2924fed6e74d2b608f0e9f9d7 to your computer and use it in GitHub Desktop.
Save 3lvis/33abced2924fed6e74d2b608f0e9f9d7 to your computer and use it in GitHub Desktop.
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