lundi 30 novembre 2015

Specta 'should receive' code

I'm trying to use Specta as my unit testing framework (Instead of Kiwi). How can I test if an object receives a selector Let's say 5 times, like I do in Kiwi?

In other words, what is the equivalent to this 'Kiwi' line of code:

[[sut should] receive:@selector(showUpsellIfNeededForFile) withCount:5];

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire