]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/stories.txt
added RSpec and RSpec on Rails
[rails.git] / vendor / gems / rspec-1.1.2 / examples / stories / game-of-life / behaviour / stories / stories.txt
diff --git a/vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/stories.txt b/vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/stories.txt
new file mode 100644 (file)
index 0000000..d8f809b
--- /dev/null
@@ -0,0 +1,22 @@
+Story: Show the game field
+    As a game player
+    I want to see the field
+    so that I can observe the progress of the organisms
+
+Scenario: an empty field
+  Given a new game starts
+  When the game displays the field
+  Then the field should be empty
+
+
+
+
+
+StoryBuilder story = stories.createStory().called("a story")
+       .asA("person")
+       .iWant("to do something")
+       .soThat("I can rule the world");
+story.addScenario().called("happy path").as()
+       .given("some context")
+       .when("some event happens")
+       .then("expect some outcome");