Skip to content

Instantly share code, notes, and snippets.

@brendanjerwin
Created May 30, 2013 11:25
Show Gist options
  • Select an option

  • Save brendanjerwin/5677228 to your computer and use it in GitHub Desktop.

Select an option

Save brendanjerwin/5677228 to your computer and use it in GitHub Desktop.
An example testing a segue method.
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