Skip to content

Instantly share code, notes, and snippets.

@danielCarlosCE
Created July 18, 2017 01:30
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 danielCarlosCE/acd37a5eeb8be276417d55949e63e977 to your computer and use it in GitHub Desktop.
Save danielCarlosCE/acd37a5eeb8be276417d55949e63e977 to your computer and use it in GitHub Desktop.
func testPrepareForSegueDoesSetDestination() {
let destination = storyBoard.instantiateViewController(withIdentifier: "InputVC") as! ViewController2
let segue = UIStoryboardSegue(identifier: "addExpense", source: sut, destination: destination)
sut.prepare(for: segue, sender: nil)
XCTAssertNotNil(destination.completion)
XCTAssertEqual(destination.type, .expense)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment