Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Here is my homework. #4

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

No description provided.

@jwo jwo commented on the diff Aug 13, 2012

blackjack.rb
@@ -213,11 +224,24 @@ def inspect
it "should have a status" do
Game.new.status.should_not be_nil
end
+ it "should not show the dealer's hand until the player stands" do
+ re = /(XX)/
+ g = Game.new
+ re_check = re.match g.status
+ re_check.should_not be_nil
@jwo

jwo Aug 13, 2012

Owner

Fun in rspec --- you could do g.status.should_not match(re)

Owner

jwo commented Aug 13, 2012

Looks good!

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