I'm having trouble getting rspec to allow me to test my Comparable class. I would like to test the <=> method, but rspec is giving me unexpected results:
@hand = Hand.new('R') @other_hand = Hand.new('S') @hand.should be > @other_hand expected > #<RPS::Hand:0x7f2d93661490>, got #<RPS::Hand:0x7f2d936615d0 @guess="R"> Shouldn't that test be checking for the comparison operator? chris
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users