Upgraded Rails and RSpec
[monkeycharger.git] / vendor / plugins / rspec / rspec / examples / stories / game-of-life / behaviour / stories / stories.txt
blobd8f809be3cac0312b213a5ffdc3c7ed60a301685
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
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
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");