[rspec-users] Do you think it would look cleaner?

David Chelimsky dchelimsky at gmail.com
Thu Jan 3 12:45:16 EST 2008


On Jan 3, 2008 3:20 PM, Kerry Buckley <kerry at kerrybuckley.com> wrote:
>
> 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)

Yes, you are correct. RSpec does not support this functionality.


More information about the rspec-users mailing list