]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/stories.txt
d8f809be3cac0312b213a5ffdc3c7ed60a301685
[rails.git] / vendor / gems / rspec-1.1.2 / examples / stories / game-of-life / behaviour / stories / stories.txt
1 Story: Show the game field
2     As a game player
3     I want to see the field
4     so that I can observe the progress of the organisms
5
6 Scenario: an empty field
7   Given a new game starts
8   When the game displays the field
9   Then the field should be empty
10
11
12
13
14
15 StoryBuilder story = stories.createStory().called("a story")
16         .asA("person")
17         .iWant("to do something")
18         .soThat("I can rule the world");
19 story.addScenario().called("happy path").as()
20         .given("some context")
21         .when("some event happens")
22         .then("expect some outcome");