~ubuntu-branches/ubuntu/oneiric/puppet/oneiric-security

« back to all changes in this revision

Viewing changes to vendor/gems/rspec/examples/stories/game-of-life/behaviour/stories/ICanCreateACell.story

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2008-07-26 15:43:45 UTC
  • mto: (3.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20080726154345-1fmgo76b4l72ulvc
ImportĀ upstreamĀ versionĀ 0.24.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Story: I can create a cell
 
2
 
 
3
As a game producer
 
4
I want to create a cell
 
5
So that I can show the grid to people
 
6
 
 
7
Scenario: nothing to see here
 
8
 
 
9
Given a 3 x 3 game
 
10
Then the grid should look like
 
11
...
 
12
...
 
13
...
 
14
 
 
15
Scenario: all on its lonesome
 
16
 
 
17
Given a 3 x 3 game
 
18
When I create a cell at 1, 1
 
19
Then the grid should look like
 
20
...
 
21
.X.
 
22
...
 
23
 
 
24
Scenario: the grid has three cells
 
25
 
 
26
Given a 3 x 3 game
 
27
When I create a cell at 0, 0
 
28
and I create a cell at 0, 1
 
29
and I create a cell at 2, 2
 
30
Then the grid should look like
 
31
XX.
 
32
...
 
33
..X
 
34
 
 
35
Scenario: more cells more more
 
36
 
 
37
Given the grid has three cells
 
38
When I create a celll at 3, 1
 
39
Then the grid should look like
 
40
XX.
 
41
..X
 
42
..X