]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/CellsWithLessThanTwoNeighboursDie.story
added RSpec and RSpec on Rails
[rails.git] / vendor / gems / rspec-1.1.2 / examples / stories / game-of-life / behaviour / stories / CellsWithLessThanTwoNeighboursDie.story
diff --git a/vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/CellsWithLessThanTwoNeighboursDie.story b/vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/CellsWithLessThanTwoNeighboursDie.story
new file mode 100644 (file)
index 0000000..8374e86
--- /dev/null
@@ -0,0 +1,21 @@
+Story: cells with less than two neighbours die\r
+\r
+As a game producer\r
+I want cells with less than two neighbours to die\r
+So that I can illustrate how the game works to people with money\r
+\r
+Scenario: cells with zero or one neighbour die\r
+\r
+Given the grid looks like\r
+........\r
+.XX.XX..\r
+.XX.....\r
+....X...\r
+........\r
+When the next step occurs\r
+Then the grid should look like\r
+........\r
+.XX.....\r
+.XX.....\r
+........\r
+........\r