[rspec-users] RSpec whines when I set the value of an object
lists at ruby-forum.com
Wed Nov 5 15:53:22 EST 2008
> This expectation:
> is what you really want, because it's ensuring that Order#amount= is
> being called with the correct value.
> So, just remove the "should eql(50)" expectation, and you're all set!
You are perfectly right Nick, I had just noticed that behavior which I
couldn't understand so that's why I wanted to know what was behind it.
At the same time it taught how exactly mock_model works which I first
got completely wrong.
Thanks for your assistance.
Posted via http://www.ruby-forum.com/.
More information about the rspec-users