Created
January 16, 2014 08:47
-
-
Save proubits/8451709 to your computer and use it in GitHub Desktop.
The cucumber feature file for the game of life ruby implementation
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
#life.feature | |
Feature: life generation | |
In order to play game of life | |
As a player | |
I want to start the game and watch the life generation patterns | |
Scenario: generate block pattern | |
Given a "block" pattern as seed | |
When game generate next generation | |
Then I should see current life generation has "block" pattern | |
Scenario: generate beehive pattern | |
Given a "beehive" pattern as seed | |
When game generate next generation | |
Then I should see current life generation has "beehive" pattern | |
Scenario: generate loaf pattern | |
Given a "loaf" pattern as seed | |
When game generate next generation | |
Then I should see current life generation has "loaf" pattern | |
Scenario: generate boat pattern | |
Given a "boat" pattern as seed | |
When game generate next generation | |
Then I should see current life generation has "boat" pattern | |
Scenario: generate blinker pattern | |
Given a "blinker" pattern as seed | |
When game generate next generation | |
Then I should see current life generation has "blinker" pattern | |
Scenario: generate toad pattern | |
Given a "toad" pattern as seed | |
When game generate next generation | |
Then I should see current life generation has "toad" pattern | |
Scenario: generate beacon pattern | |
Given a "beacon" pattern as seed | |
When game generate next generation | |
Then I should see current life generation has "beacon" pattern |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment