Skip to content

Instantly share code, notes, and snippets.

@Rich86man
Created August 2, 2012 23:38
Show Gist options
  • Save Rich86man/3242060 to your computer and use it in GitHub Desktop.
Save Rich86man/3242060 to your computer and use it in GitHub Desktop.
Initial try
- (void)testTabsGetNotified
{
[[mockController stub] requestSessionId];
[[mockController stub] endVisit];
id mockVideoController = [OCMockObject partialMockForObject:playgroundController.videoController];
id mockArtController = [OCMockObject partialMockForObject:playgroundController.artController];
playgroundController.currentTab = NoTab;
[[mockVideoController expect] tabDidAppear];
[playgroundController displayVideoTab];
[[mockArtController expect] tabDidAppear];
[[mockVideoController expect] tabDidDisappear];
[playgroundController displayArtTab];
[[mockVideoController expect] tabDidAppear];
[[mockArtController expect] tabDidDisappear];
[playgroundController displayVideoTab];
[mockVideoController verify];
[mockArtController verify];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment