changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/examples/stories/addition

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
1This is a story about a calculator. The text up here above the Story: declaration
2won't be processed, so you can write whatever you wish!
3
4Story: simple addition
5
6 As an accountant
7 I want to add numbers
8 So that I can count beans
9
10 Scenario: add one plus one
11 Given an addend of 1
12 And an addend of 1
13
14 When the addends are addeds
15
16 Then the sum should be 3
17 And the corks should be popped
18
19 Scenario: add two plus five
20 Given an addend of 2
21 And an addend of 5
22
23 When the addends are added
24
25 Then the sum should be 7
26 Then it should snow
27
28 Scenario: add three more
29 GivenScenario add two plus five
30 And an addend of 3
31
32 When the addends are added
33
34 Then the sum should be 10