[rspec-users] odd mock behavior
micah at 8thlight.com
Wed Feb 7 11:59:25 EST 2007
I'm seeing some odd behavior around the should_receive() when given a
block combined with some cardinality.
For example, with the following...
my_mock.should_receive(:foo).twice do |i|
... the spec passes but i never gets puts'ed.
With the following...
my_mock.should_receive(:foo) do |i|
... i gets puts'ed twice but the spec fails because it was only
expecting one call to :foo.
8th Light, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users