Skip to content

Instantly share code, notes, and snippets.

@HHuckebein
Created August 27, 2013 06:50
Show Gist options
  • Save HHuckebein/6350389 to your computer and use it in GitHub Desktop.
Save HHuckebein/6350389 to your computer and use it in GitHub Desktop.
Test if a manually triggered segue is connected. The convention for segue names are always follows the pattern view controller class name appended by the string "Segue".
- (void)test_ExamplesVCSegueConnected
{
STAssertNoThrow([self.sut performSegueWithIdentifier:[[self appDelegate] segueIdentifierForClass:[ExamplesVC class]] sender:self], @"ExamplesVC should be connected");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment