[rspec-users] Multi-line steps

Rick DeNatale rick.denatale at gmail.com
Thu Apr 10 18:01:27 EDT 2008

On Thu, Apr 10, 2008 at 5:25 PM, aslak hellesoy
<aslak.hellesoy at gmail.com> wrote:

>  This is a very "technical" way to express a scenario. It wouldn't make
>  much sense to a typical domain expert (unless they know about
>  databases).
>  I generally try to write scenarios using the domain language,
>  focussing on outcomes for users (not computers). Example:
>  Given the customers joe, paul and lisa are registered users
>  When a user signs up as lisa
>  Then the user should be informed that the name is taken
>  And the user lisa should not be able to log in

I'm not sure which of the two lisas I should feel sorry for. <G>
Rick DeNatale

My blog on Ruby

More information about the rspec-users mailing list