[rspec-users] stepping across features

James Byrne lists at ruby-forum.com
Thu Dec 4 08:45:50 EST 2008

Andrew Premdas wrote:
> It seems to me that there are all sorts of implementation details in 
> this story that could make your tests quite brittle. And the feature is
> definitiley a programmer writing a test, rather than a customer 

Guilty as charged.

> Putting on my customer hat
> Scenario: Add location
>   Given I have a party
>   When I set the location
>      And I view the party
>    Then I should see the location
> Starting with this you can then deal with other customer scenario's and 
> work
> out what they mean e.g.
> Scenario: Change location
> Scenario: Add multiple locations
> Scenario: Specify location priorities
> These may be complex enough to be  new features. allowing you to 
> explore meaning and business value e.g.  what is the value in
> prioritising a location, what happens if there are two main locations
> etc.

Yes. it is most helpful. Thank you very much.
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list