Skip to content

Commit

Permalink
Merge pull request #5 from adamdaley/master
Browse files Browse the repository at this point in the history
Added features for being told its my turn and its my draw
  • Loading branch information
MarcelloDuarte committed Dec 11, 2012
2 parents eaf0527 + acdc210 commit b363538
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
19 changes: 19 additions & 0 deletions features/messages/player_is_told_its_a_draw.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Feature: Player is told it's a draw
As a player
I want to be told it's a draw
So that I know the result was a draw

Scenario: It is a draw
Given I am on the "game page"
When The game results in a draw
Then I should see a message saying "It's a draw"

Scenario: I win
Given I am on the "game page"
When I win the game
Then I should not see a message saying "It's a draw"

Scenario: I lose
Given I am on the "game page"
When I lose the game
Then I should not see a message saying "It's a draw"
25 changes: 25 additions & 0 deletions features/messages/player_is_told_its_their_turn.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Feature: Player is told it's their turn
As a player
I want to be told it's my turn
So that I know when I can make a move

Scenario: It is the start of the game
Given I am on the "game page"
And I am "player1"
When The game starts
Then I should see a message saying "It is your turn"

Scenario: It is my turn to make a move
Given I am on the "game page"
When My opponent makes a move
Then I should see a message saying "It is your turn"

Scenario: When I finish playing a move
Given I am on the "game page"
When I complete my move
Then I should not see a message saying "It is your turn"

Scenario: When the game ends
Given I am on the "game page"
When A game ends
Then I should not see a message saying "It is your turn"

0 comments on commit b363538

Please sign in to comment.