]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/TheGridWraps.story
added RSpec and RSpec on Rails
[rails.git] / vendor / gems / rspec-1.1.2 / examples / stories / game-of-life / behaviour / stories / TheGridWraps.story
diff --git a/vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/TheGridWraps.story b/vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/TheGridWraps.story
new file mode 100644 (file)
index 0000000..aeeede7
--- /dev/null
@@ -0,0 +1,53 @@
+Story: The grid wraps\r
+\r
+As a game player\r
+I want the grid to wrap\r
+So that untidy stuff at the edges is avoided\r
+\r
+Scenario: crowded in the corners\r
+\r
+Given the grid looks like\r
+X.X\r
+...\r
+X.X\r
+When the next step is taken\r
+Then the grid should look like\r
+X.X\r
+...\r
+X.X\r
+\r
+\r
+Scenario: the glider returns\r
+\r
+Given the glider\r
+......\r
+..X...\r
+.X....\r
+.XXX..\r
+......\r
+When the next step is taken\r
+and the next step is taken\r
+and the next step is taken\r
+and the next step is taken\r
+Then the grid should look like\r
+......\r
+......\r
+.X....\r
+X.....\r
+XXX...\r
+When the next step is taken\r
+Then the grid should look like\r
+.X....\r
+......\r
+......\r
+X.X...\r
+XX....\r
+When the next step is taken\r
+Then the grid should look like\r
+XX....\r
+......\r
+......\r
+X.....\r
+X.X...\r
+\r
+\r