Skip to content

Instantly share code, notes, and snippets.

@joesus
Last active June 16, 2017 22:23
Show Gist options
  • Save joesus/2ee10b18d93b91bd624060f305ea6300 to your computer and use it in GitHub Desktop.
Save joesus/2ee10b18d93b91bd624060f305ea6300 to your computer and use it in GitHub Desktop.
KittenAdoptR ViewControllerTests2
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