Skip to content

Instantly share code, notes, and snippets.

@ennioma
Last active July 6, 2017 22:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ennioma/d284e22b6ce07c990d1b9f9a9c049b8b to your computer and use it in GitHub Desktop.
func testDummyMethod() {
let dummyContext = try! DummyContext(configuration: .inMemory(identifier: nil))
let fooObject = FooObject(context: dummyContext)
let exp = self.expectation(description: "dummy test")
fooObject.dummyMethod { (status) in
XCTAssertEqual(status, false)
exp.fulfill()
}
self.waitForExpectations(timeout: 1, handler: nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment