X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ddd5b4cf19a92582fd114914be5bd5a04d3522a7..3f607d565bc0e2c7b1b738301c11c16d069913d5:/vendor/gems/rspec-1.1.2/examples/stories/addition diff --git a/vendor/gems/rspec-1.1.2/examples/stories/addition b/vendor/gems/rspec-1.1.2/examples/stories/addition new file mode 100644 index 000000000..58f092990 --- /dev/null +++ b/vendor/gems/rspec-1.1.2/examples/stories/addition @@ -0,0 +1,34 @@ +This is a story about a calculator. The text up here above the Story: declaration +won't be processed, so you can write whatever you wish! + +Story: simple addition + + As an accountant + I want to add numbers + So that I can count beans + + Scenario: add one plus one + Given an addend of 1 + And an addend of 1 + + When the addends are addeds + + Then the sum should be 3 + And the corks should be popped + + Scenario: add two plus five + Given an addend of 2 + And an addend of 5 + + When the addends are added + + Then the sum should be 7 + Then it should snow + + Scenario: add three more + GivenScenario add two plus five + And an addend of 3 + + When the addends are added + + Then the sum should be 10