what could be simpler? Thanks! On Friday, February 22, 2013 8:02:05 PM UTC-5, [email protected] wrote: > > On Fri, Feb 22, 2013 at 6:54 PM, Pito Salas <[email protected]<javascript:>> > wrote: > > 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? > > pserv.should_receive(:smart_add_participant).with("A", 2, 3) > pserv.should_receive(:smart_add_participant).with("A", 4, 1) > > And if order matters: > > pserv.should_receive(:smart_add_participant).with("A", 2, 3).ordered > pserv.should_receive(:smart_add_participant).with("A", 4, 1).ordered > > Cheers, > David > > > > > 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] <javascript:>. > > To post to this group, send email to [email protected]<javascript:>. > > > 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. > > > > >
-- 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/-/uNI3IanX3sQJ. For more options, visit https://groups.google.com/groups/opt_out.
