[rspec-users] Do you think it would look cleaner?
Kerry Buckley
kerry at kerrybuckley.com
Thu Jan 3 12:20:45 EST 2008
On 2 Jan 2008, at 22:09, David Chelimsky wrote:
> On Jan 2, 2008 5:20 PM, Zach Dennis <zach.dennis at gmail.com> wrote:
>
>> RSpec doesn't enforce strict-order mocking.
>
> Sure it does, if you ask it to:
> http://rspec.info/documentation/mocks/message_expectations.html
Am I right, though, in thinking that you can't enforce order between
two mocks? It would occasionally be nice to be able to say something
like:
master.should_receive(:start).and_then(slave).should_receive(:start)
More information about the rspec-users
mailing list