Created
May 30, 2013 11:25
-
-
Save brendanjerwin/5677228 to your computer and use it in GitHub Desktop.
An example testing a segue method.
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
| describe(@"Segues", ^{ | |
| describe(@"entity list segue", ^{ | |
| describe(@"When Entity is selected", ^{ | |
| __block TNWEntityTableViewController *mockController; | |
| beforeEach (^{ | |
| mockController = mock([TNWEntityTableViewController class]); | |
| cut.selectedEntityList = @"Entity"; | |
| [cut entityListSegueToController:mockController WithSegue:nil]; | |
| }); | |
| it(@"should call beginLoadEntity on the entity list controller", ^{ | |
| [verify(mockController) beginLoadEntity:@"Entity"]; | |
| }); | |
| }); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment