Permalink
Browse files

beef up specs

  • Loading branch information...
Pat Maddox
Pat Maddox committed Aug 25, 2010
1 parent 7520dbd commit 8101112b25ce6f85fb5f52d02d7ccaa08ca89848
Showing with 6 additions and 1 deletion.
  1. +6 −1 spec/hand_spec.rb
View
@@ -3,7 +3,7 @@
## This is an exercise to get you into the red-green-refactor rhythm
## of BDD. Run this file with:
-## ruby spec/hand_spec.rb
+## rspec spec/hand_spec.rb
## You will see an error message stating that a method doesn't exist.
## Write the minimum amount of code necessary to get past the error.
@@ -65,6 +65,11 @@
@hand.deal 9
@hand.should_not be_bonus
end
+
+ it "should not be bonus when dealt 5, 5, 5" do
+ 3.times { @hand.deal 5 }
+ @hand.should_not be_bonus
+ end
it "should be bonus when dealt 6, 7, 8" do
@hand.deal 6

0 comments on commit 8101112

Please sign in to comment.