[rspec-devel] Stories vs. examples

David Chelimsky dchelimsky at gmail.com
Tue Nov 6 16:36:51 EST 2007


On Nov 6, 2007 3:34 PM, Jake Howerton <jake.howerton at gmail.com> wrote:
> This makes me wonder if some sort of bug tracking system could be
> integrated into the browser story editor where testers/customers could
> enter the passing and failing story.
>
> Bug Scenario: bad addition to cart
>  Given user has two apples in cart
>
>  When user adds two apples to cart
>
>  Then user has three apples in cart
>
> Expected Scenario: proper addition to cart
>  Given user has two apples in cart
>
>  When user adds two apples to cart
>
>  Then user has four apples in cart
>
> When you fix the bug you can promote the expected scenario to a first
> class scenario ( or merge it with the one that did not cover the bug
> properly),  and store the bug regression stories somewhere to ensure
> they do not fail in the future.
>
> WDYT?

I think that's a short bit down the road, but definitely feasible and useful.

Cheers,
David


More information about the rspec-devel mailing list