Permalink
Browse files

Compare flush hands

  • Loading branch information...
camillebaldock committed Sep 8, 2014
1 parent 6000b59 commit c51045c6dc0b8b5b71c52135b7522aa63ad10d11
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/hand_spec.rb
View
@@ -169,6 +169,14 @@
it "returns the other cards correctly" do
expect(hand.rank.fetch(:cards)).to eq [10,8,7,6,5]
end
+ context "comparison" do
+ context "with a hand with lower cards" do
+ let(:other_hand_string_array) { ["5h", "2h", "7h", "8h", "10h"] }
+ it "is better" do
+ expect(hand).to be > other_hand
+ end
+ end
+ end
end
context "straight hand" do

0 comments on commit c51045c

Please sign in to comment.