From 990df8fbcf1a065c47de0269065a120e2e106895 Mon Sep 17 00:00:00 2001 From: Beam Date: Tue, 11 Dec 2012 11:00:19 +0000 Subject: [PATCH] Adding feature files for a player being told its a draw and when its their turn --- .../player_is_told_its_a_draw.feature | 19 ++++++++++++++ .../player_is_told_its_their_turn.feature | 25 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 features/messages/player_is_told_its_a_draw.feature create mode 100644 features/messages/player_is_told_its_their_turn.feature diff --git a/features/messages/player_is_told_its_a_draw.feature b/features/messages/player_is_told_its_a_draw.feature new file mode 100644 index 0000000..f11ce2c --- /dev/null +++ b/features/messages/player_is_told_its_a_draw.feature @@ -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" diff --git a/features/messages/player_is_told_its_their_turn.feature b/features/messages/player_is_told_its_their_turn.feature new file mode 100644 index 0000000..a0d34de --- /dev/null +++ b/features/messages/player_is_told_its_their_turn.feature @@ -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"