]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/ICanCreateACell.story
Show whether a trace is public or private in the trace list, so that a user can easil...
[rails.git] / vendor / gems / rspec-1.1.2 / examples / stories / game-of-life / behaviour / stories / ICanCreateACell.story
1 Story: I can create a cell\r
2 \r
3 As a game producer\r
4 I want to create a cell\r
5 So that I can show the grid to people\r
6 \r
7 Scenario: nothing to see here\r
8 \r
9 Given a 3 x 3 game\r
10 Then the grid should look like\r
11 ...\r
12 ...\r
13 ...\r
14 \r
15 Scenario: all on its lonesome\r
16 \r
17 Given a 3 x 3 game\r
18 When I create a cell at 1, 1\r
19 Then the grid should look like\r
20 ...\r
21 .X.\r
22 ...\r
23 \r
24 Scenario: the grid has three cells\r
25 \r
26 Given a 3 x 3 game\r
27 When I create a cell at 0, 0\r
28 and I create a cell at 0, 1\r
29 and I create a cell at 2, 2\r
30 Then the grid should look like\r
31 XX.\r
32 ...\r
33 ..X\r
34 \r
35 Scenario: more cells more more\r
36 \r
37 Given the grid has three cells\r
38 When I create a celll at 3, 1\r
39 Then the grid should look like\r
40 XX.\r
41 ..X\r
42 ..X\r