I'm facing the issue to right test case for below mentioned function.
-(IBAction) returnToLogin:(UIStoryboardSegue*) segue {
NSLog(@"kiwi tested");
}
I have tried different ways but it's pass the test case
it(@"Should unwind segue", ^{
NSNumber *actionMethod = @([_vc respondsToSelector:@selector(returnToLogin:)]);
[[actionMethod should] beTrue];
});
Do you have any idea?