On Mar 15, 2010, at 11:16 PM, Chris DiMartino wrote:
> 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_h
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 > #, got #
Shouldn't that test be checking for the c