[rspec-users] Story Runner: Two 'then' steps output as 'then..and' :)

David Chelimsky dchelimsky at gmail.com
Mon Oct 15 07:15:01 EDT 2007


On 10/15/07, Andy Watts <andywatts at yahoo.com> wrote:
>
> Maybe I'm slow, but I just noticed that the following code..
>
> When 'I login'
> When 'I do something else'

You're encouraged to write this as:

When 'I login'
And 'I do something else'

Cheers,
David

>
> ...will output as...
>
> When 'I login'
> And 'I do something else'
>
> The same is true for two 'Then' steps
>
> That is really cool!
> Reusable steps and coherent English output.
>
> - Andy
>
> --
> View this message in context: http://www.nabble.com/Story-Runner%3A-Two-%27then%27-steps-output-as-%27then..and%27-%3A%29-tf4625856.html#a13209643
> Sent from the rspec-users mailing list archive at Nabble.com.
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list