[Rspec-users] Fwd: mock parameter problem

Micah Martin micah at 8thlight.com
Wed Oct 25 00:11:58 EDT 2006


On Oct 24, 2006, at 11:00 PM, David Chelimsky wrote:

> This is actually fixed in the trunk. So now if you do this:
>
> mock.should_receive(:foo).with(:arg)
> mock.blah(:wrong_arg)
>
> You'll get this:
>
> Mock 'blah' expected :foo with [:arg] once, and received it 0 times.

Wonderful!  The next release is going to be a value packed release!

Micah



More information about the Rspec-users mailing list