Last active
June 16, 2017 22:23
-
-
Save joesus/2ee10b18d93b91bd624060f305ea6300 to your computer and use it in GitHub Desktop.
KittenAdoptR ViewControllerTests2
This file contains 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 testControllerHasTableView() { | |
guard let controller = UIStoryboard(name: "Main", bundle: Bundle(for: ViewController.self)).instantiateInitialViewController() as? ViewController else { | |
return XCTFail("Could not instantiate ViewController from main storyboard") | |
} | |
controller.loadViewIfNeeded() | |
XCTAssertNotNil(controller.tableView, | |
"Controller should have a tableview") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment