Mark
--
Mark Menard
518 369 7356
ma...@mjm.net
Business: http://www.vitarara.net/
Personal: http://www.vitarara.org/
Sent from my iPhone
> --
> You received this message because you are subscribed to the Google Groups "TechValley Ruby Brigade" group.
> To post to this group, send email to techva...@googlegroups.com.
> To unsubscribe from this group, send email to techvalleyrb...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/techvalleyrb?hl=en.
>
Sent from my iPhone
On Jun 27, 2010, at 3:10 PM, Thomas Porter <tom.x....@gmail.com> wrote:
> So you can stack when/then sets under a given? Will second and third when/then sets inherit the state set in prior when/then's?
>
You're overthinking it. Cucumber is actually pretty dumb inside. Given, When, and Then all have the same meaning to it. Cucumber just runs through all the steps for a given scenario in order, maintaining state till the end of the scenario.
>
Note, however, that if you have go back and forth too much between When and Then in one scenario, you might be better advised to split it into several scenarios.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
I think this was the key point for me, which I suspected:
"...maintaining state till the end of the scenario..."
I have to repeat to myself some times "It's still just ruby under the hood".
Tom P
Mark
> --
> You received this message because you are subscribed to the Google Groups "TechValley Ruby Brigade" group.
> To post to this group, send email to techva...@googlegroups.com.
> To unsubscribe from this group, send email to techvalleyrb...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/techvalleyrb?hl=en.
>
>
--
Mark Menard
518.369.7356
http://www.vitarara.net/
Twitter: @mark_menard
AIM: MJFXMenard