I use RSpec mock and stub like this:
hit = mock("hit", :stored => 5)
This works fine, but when using this instead:
hit = mock("hit").stub(:stored) { 5 }
then I get
undefined method `stored' for #<RSpec::Mocks::MessageExpectation:
0xb688bb78>
I always thought both were equivalent. Can someone enlighten me?
Regards,
Kai
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users
