I’m having trouble getting rspec to allow me to test my Comparable
would like to test the <=> method, but rspec is giving me unexpected
@hand = Hand.new(‘R’)
@other_hand = Hand.new(‘S’)
@hand.should be > @other_hand
expected > #RPS::Hand:0x7f2d93661490, got #<RPS:0x7f2d936615d0
Shouldn’t that test be checking for the comparison operator?