[rspec-users] RSpec whines when I set the value of an object

Fernando Perez lists at ruby-forum.com
Wed Nov 5 14:59:03 EST 2008

To make RSpec happy, I tried to test for the following:
    @cart.amount.should eql(50)

And now I get:
expected 50, got 0 (using .eql?)

So is @cart.amount being set to 50 or not in the spec? When I test 
manually it works fine.
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list