]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/TheGridWraps.story
aeeede77d341d0395135149d25608367cbfc1db0
[rails.git] / vendor / gems / rspec-1.1.2 / examples / stories / game-of-life / behaviour / stories / TheGridWraps.story
1 Story: The grid wraps\r
2 \r
3 As a game player\r
4 I want the grid to wrap\r
5 So that untidy stuff at the edges is avoided\r
6 \r
7 Scenario: crowded in the corners\r
8 \r
9 Given the grid looks like\r
10 X.X\r
11 ...\r
12 X.X\r
13 When the next step is taken\r
14 Then the grid should look like\r
15 X.X\r
16 ...\r
17 X.X\r
18 \r
19 \r
20 Scenario: the glider returns\r
21 \r
22 Given the glider\r
23 ......\r
24 ..X...\r
25 .X....\r
26 .XXX..\r
27 ......\r
28 When the next step is taken\r
29 and the next step is taken\r
30 and the next step is taken\r
31 and the next step is taken\r
32 Then the grid should look like\r
33 ......\r
34 ......\r
35 .X....\r
36 X.....\r
37 XXX...\r
38 When the next step is taken\r
39 Then the grid should look like\r
40 .X....\r
41 ......\r
42 ......\r
43 X.X...\r
44 XX....\r
45 When the next step is taken\r
46 Then the grid should look like\r
47 XX....\r
48 ......\r
49 ......\r
50 X.....\r
51 X.X...\r
52 \r
53 \r