Last active
June 19, 2017 17:31
-
-
Save joesus/fdbd0fcd026c2f197573ffb7ec8dab60 to your computer and use it in GitHub Desktop.
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 testTableViewDataSourceIsKittenDataSource() { | |
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() | |
XCTAssertTrue(controller.tableView.dataSource is KittenDataSource, | |
"TableView's data source should be a KittenDataSource") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment