--
You received this message because you are subscribed to the Google Groups "Cedar Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cedar-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
navigationController = [[[UIStoryboard storyboardWithName:@"onboarding" bundle:nil] instantiateInitialViewController] retain];
root = navigationController.viewControllers[0];
spy_on(root);
[root performSegueWithIdentifier:@"joinSegue" sender:root];
joinController = navigationController.viewControllers[1];
spy_on(joinController);
joinController.view should_not be_nil;
[joinController viewDidLoad];
[joinController performSegueWithIdentifier: @"exitSegue" sender: joinController];
NSLog(@"================> %@", navigationController.viewControllers);
So, my exitSegue will unwind back to the root of the navigation controller and in my test I'm expecting the navigationController.viewControllers to no longer include joinController.
I could remove the viewcontroller in my prepareFor Segue, but this method is never called when Cedar calls performSegue.
Would removing the VC from the stack in prepare for segue and adding a prepare for segue call in the test be a valid test for checking that the VC was dismissed?
--
You received this message because you are subscribed to a topic in the Google Groups "Cedar Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cedar-discuss/PC7BTDs_B7w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cedar-discus...@googlegroups.com.