[rspec-users] Before and After blocks for individual feature files?

Julian Leviston julian at leviston.net
Tue Apr 28 09:11:43 EDT 2009

Perhaps use background?


On 28/04/2009, at 10:18 PM, doug livesey wrote:

> Hi -- is it possible to set before and after blocks for individual  
> feature files?
> I've tried putting them in step files, but they just get called  
> before everything, like they'd been declared in env.rb, which is  
> consistent with how I thought cucumber worked, but I thought I'd  
> best try it anyway.
> Anyway, I have some features that require a specific state be set up  
> before they run -- is this possible to do, and how would I go about  
> doing it?
> Thanks for any & all help,
>    Doug.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list