]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/ICanCreateACell.story
added RSpec and RSpec on Rails
[rails.git] / vendor / gems / rspec-1.1.2 / examples / stories / game-of-life / behaviour / stories / ICanCreateACell.story
diff --git a/vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/ICanCreateACell.story b/vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/ICanCreateACell.story
new file mode 100644 (file)
index 0000000..88895cb
--- /dev/null
@@ -0,0 +1,42 @@
+Story: I can create a cell\r
+\r
+As a game producer\r
+I want to create a cell\r
+So that I can show the grid to people\r
+\r
+Scenario: nothing to see here\r
+\r
+Given a 3 x 3 game\r
+Then the grid should look like\r
+...\r
+...\r
+...\r
+\r
+Scenario: all on its lonesome\r
+\r
+Given a 3 x 3 game\r
+When I create a cell at 1, 1\r
+Then the grid should look like\r
+...\r
+.X.\r
+...\r
+\r
+Scenario: the grid has three cells\r
+\r
+Given a 3 x 3 game\r
+When I create a cell at 0, 0\r
+and I create a cell at 0, 1\r
+and I create a cell at 2, 2\r
+Then the grid should look like\r
+XX.\r
+...\r
+..X\r
+\r
+Scenario: more cells more more\r
+\r
+Given the grid has three cells\r
+When I create a celll at 3, 1\r
+Then the grid should look like\r
+XX.\r
+..X\r
+..X\r