Skip to content

Instantly share code, notes, and snippets.


ennioma/test_dummy.swift Secret

Last active Jul 6, 2017
What would you like to do?
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)
self.waitForExpectations(timeout: 1, handler: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment