-
-
Save obie/25818 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When player wins he should be paid 1-1 | |
When player loses, he is not paid | |
When player has blackjack, he is paid 1.5-1 | |
Scenario: Winning hand with a $50 bet | |
Given the player has a score of 19 | |
And the dealer has a score of 18 | |
And the player bet $50 | |
When the hand is played | |
Then the player wins $50 | |
Scenario: Winning hand with a $50 bet | |
Given a score of 21 or less | |
And the score is not blackjack | |
And the score is not bonus | |
And the dealer has less than score | |
And the player bet $50 | |
When the hand is played | |
Then the player wins $50 | |
Scenario: Blackjack with a $50 bet | |
Given a hand of :ace, :jack | |
And the player bet $50 | |
When the game is played | |
Then the player wins $75 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment