btakita/rr — Issue #76: Spies example not working for me
Author: mb-dev
Created: 2011-12-28 00:44:26+00:00
State: open

I tried running this sample code from Spies inside rspec test:
subject1 = Object.new
stub(subject1).foo
subject1.foo(1)
subject1.should have_received.foo(1)
subject1.should have_received.bar # this fails

I got:
NoMethodError: undefined method `foo' for #
(on the line with the code: subject1.should have_received.foo(1))

I am using rr 1.0.4 and Ruby 1.9.3