Last active
September 7, 2016 13:03
-
-
Save chelseatroy/a1fc86c6d3e31fce3a95017d963eab7e to your computer and use it in GitHub Desktop.
View Controller Unit Test
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 testNavigateToView_loadsView() { | |
let controller = ExampleViewController.loadFromStoryboard() | |
assertThat(controller.view, present()) | |
UIWindow.present(viewController: controller) { () in | |
assertThat(controller.someTextLabel.text, presentAnd(equalTo("Why hello there!"))) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment