> This expectation: > @cart.should_receive(:amount=).with(50) > 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! > -Nick
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/. _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
