]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/CellsWithLessThanTwoNeighboursDie.story
8374e86c5efa6ff232d63143245ea02a7bdec482
[rails.git] / vendor / gems / rspec-1.1.2 / examples / stories / game-of-life / behaviour / stories / CellsWithLessThanTwoNeighboursDie.story
1 Story: cells with less than two neighbours die\r
2 \r
3 As a game producer\r
4 I want cells with less than two neighbours to die\r
5 So that I can illustrate how the game works to people with money\r
6 \r
7 Scenario: cells with zero or one neighbour die\r
8 \r
9 Given the grid looks like\r
10 ........\r
11 .XX.XX..\r
12 .XX.....\r
13 ....X...\r
14 ........\r
15 When the next step occurs\r
16 Then the grid should look like\r
17 ........\r
18 .XX.....\r
19 .XX.....\r
20 ........\r
21 ........\r