# Best way of writing fetaures for a wizard

**URL:** <https://www.ruby-forum.com/t/best-way-of-writing-fetaures-for-a-wizard/160055>\
**Category:** RSpec\
**Created:** [February 11, 2009, 11:33am UTC](https://www.ruby-forum.com/t/best-way-of-writing-fetaures-for-a-wizard/160055 "2009-02-11T11:33:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ba8739/32.png) [@lucas](https://www.ruby-forum.com/u/lucas)\
**Post date:** [February 11, 2009, 11:33am UTC](https://www.ruby-forum.com/t/best-way-of-writing-fetaures-for-a-wizard/160055/1 "2009-02-11T11:33:38Z")

</div>

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?

Well, any thoughts we’ll be very appreciated.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![lucas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ba8739/32.png) [@lucas](https://www.ruby-forum.com/u/lucas)\
**Post date:** [February 11, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/best-way-of-writing-fetaures-for-a-wizard/160055/2 "2009-02-11T14:40:14Z")

</div>

On Wed, Feb 11, 2009 at 3:38 AM, Lucas F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> “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?

If you see Cucumber as customer facing and RSpec as developer facing  
(as I do), then you’d want one scenario in Cucumber and then the  
details in RSpec.

That make sense?

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![lucas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ba8739/32.png) [@lucas](https://www.ruby-forum.com/u/lucas)\
**Post date:** [February 11, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/best-way-of-writing-fetaures-for-a-wizard/160055/3 "2009-02-11T14:41:26Z")

</div>

On 11 Feb 2009, at 09:38, Lucas F. wrote:

> 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?

> **[DRY up your Cucumber Steps – Tea-Driven Development](http://blog.mattwynne.net/2008/11/14/dry-up-your-cucumber-steps/)**

Matt W.

> **[Tea-Driven Development – Matt Wynne taking it one tea at a time](http://blog.mattwynne.net)**

> **[Find the Best Concerts Near You, Tour Dates & Tickets Worldwide | Songkick](https://www.songkick.com)**
>
> Find live music near you, track your favorite artists, get instant concert alerts and buy tickets for all the best upcoming concerts.
