changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/stories.txt

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1Story: 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
6Scenario: 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
15StoryBuilder story = stories.createStory().called("a story")
16 .asA("person")
17 .iWant("to do something")
18 .soThat("I can rule the world");
19story.addScenario().called("happy path").as()
20 .given("some context")
21 .when("some event happens")
22 .then("expect some outcome");