]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/EmptySpacesWithThreeNeighboursCreateACell.story
added RSpec and RSpec on Rails
[rails.git] / vendor / gems / rspec-1.1.2 / examples / stories / game-of-life / behaviour / stories / EmptySpacesWithThreeNeighboursCreateACell.story
diff --git a/vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/EmptySpacesWithThreeNeighboursCreateACell.story b/vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/EmptySpacesWithThreeNeighboursCreateACell.story
new file mode 100644 (file)
index 0000000..cbc248e
--- /dev/null
@@ -0,0 +1,42 @@
+Story: Empty spaces with three neighbours create a cell\r
+\r
+As a game producer\r
+I want empty cells with three neighbours to die\r
+So that I have a minimum feature set to ship\r
+\r
+Scenario: the glider\r
+\r
+Given the grid looks like\r
+...X..\r
+..X...\r
+..XXX.\r
+......\r
+......\r
+When the next step occurs\r
+Then the grid should look like\r
+......\r
+..X.X.\r
+..XX..\r
+...X..\r
+......\r
+When the next step occurs\r
+Then the grid should look like\r
+......\r
+..X...\r
+..X.X.\r
+..XX..\r
+......\r
+When the next step occurs\r
+Then the grid should look like\r
+......\r
+...X..\r
+.XX...\r
+..XX..\r
+......\r
+When the next step occurs\r
+Then the grid should look like\r
+......\r
+..X...\r
+.X....\r
+.XXX..\r
+......\r