Panda and Tiger #15

Open
wants to merge 1 commit into
from

Projects

None yet

2 participants

@chrissav

No description provided.

@jwo jwo commented on the diff Nov 20, 2012
blackjack.rb
@@ -225,6 +227,14 @@ def inspect
game.status[:winner].should_not be_nil
end
+ it "should stand for the player when player busts" do
+ game = Game.new
+ until game.status[:player_value] > 21
@jwo
jwo Nov 20, 2012 Member

This makes sense; in your tests, you may want to avoid setups like this that could be "wishy washy" --- instead, you could prefer to set the pre-conditions to be absolute and then make your assertion.

@jwo
Member
jwo commented Nov 20, 2012

Great job on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment