[rspec-users] Best way of writing fetaures for a wizard

Matt Wynne matt at mattwynne.net
Wed Feb 11 06:32:07 EST 2009


On 11 Feb 2009, at 09:38, Lucas Florio wrote:

> Hi everyone, I am Lucas and I am starting to use cucumber in project.
>
> I need to write  a scenario that is little bit complex.
>
> Lets suppose I have a Thing and then I need to advance that Thing  
> through 4 stages (something like 'import', 'validation',  
> 'authorization', 'export').
> Every stage is a special action/post/request with different  
> outcomes, but the presentation is the same every time, just changing  
> a few labels and buttons.
> But the problem is that for the user/customer this process is named  
> "Authorization". He doesn't care about the stages.
>
> What I mean is that the customer only sees one scenario, while I see  
> 4.
> What Is the proper way to do this kind of multi-action/complex- 
> process?

Does this help?
http://blog.mattwynne.net/2008/11/14/dry-up-your-cucumber-steps/

Matt Wynne
http://blog.mattwynne.net
http://www.songkick.com



More information about the rspec-users mailing list