On Wed, Apr 29, 2009 at 8:45 AM, Arco <akl...@gmail.com> wrote:

> Approach A -----------------------
> Before:
>  Given I have a clean database
> Scenario Outline:  Signup Scenarios
>  Given I start on the login page
>  When I signup as <userid>
>   Then I should see <message>
>  Examples:
>    | userid | message                 |
>     | userA  | successful signup       |
>    | userA  | error: duplicate userid |
>

If the desired behavior is sequential, then (to me), this is not a list of
examples, but just a single example. So I'd find the separate scenarios more
intention-revealing. If "Examples" were called "Steps," that would describe
what you're going for in this particular case.

///ark
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to