I have this:
pserv = double("ProgramServices")
pserv.should_receive(:smart_add_participant).with(any_args()).exactly(2).times
But what I would like to say is that when :smart_add_participant is called
each time the arguments are, respectively:
smart_add_participant("A", 2, 3) # first time
smart_add_participant("A", 4, 1) # second time
Is there a way to to express that?
Thank you!
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/rspec/-/HugZowISE4gJ.
For more options, visit https://groups.google.com/groups/opt_out.