Skip to content

Instantly share code, notes, and snippets.

@proubits
Created January 16, 2014 08:47
Show Gist options
  • Save proubits/8451709 to your computer and use it in GitHub Desktop.
Save proubits/8451709 to your computer and use it in GitHub Desktop.
The cucumber feature file for the game of life ruby implementation
#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