lundi 9 novembre 2015

How to write Kiwi test cases in for below mentioned IBAction

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?

Aucun commentaire:

Enregistrer un commentaire