[rspec-users] StepGroup ?

Jonathan Linowes jonathan at linowes.com
Sat Dec 22 02:51:04 EST 2007


Hi,
I have a need for the StepGroup feature in stories but not clear  
what's the current api. Could you provide an example?

In my case I have several scenarios which vary in the Givens, but not  
the results. Ideally I'm hoping to achieve something like: (but  
anything will do for now :)

Scenario: one
   Given something
   When he does foo
   Then good things should happen

Scenario: two
   Given something different
   When he does foo
   Group Of good things should happen


Group: good things should happen
   Then good thing one
   And good thing two
   And good thing three




More information about the rspec-users mailing list