[rspec-users] Cucumber: Before(:all)

Matt Wynne matt at mattwynne.net
Tue Sep 2 13:20:13 EDT 2008

> I assume you've followed the Wiki instructions about how to set up
> Cucumber with Rails:
> http://github.com/aslakhellesoy/cucumber/wikis (I should move this to
> a separate Rails page)
> Then you should have a steps/env.rb file that looks like this:
> http://github.com/aslakhellesoy/cucumber/tree/master/generators/ 
> cucumber/templates/env.rb

Done all that.

> You can put the code in this file, or you can put it in another one
> and do this at the top:
> require File.dirname(__FILE__) + '/env'


So I assumed that the features/steps/env.rb file was what was loading  
all the other files in features/steps. Sounds a bit silly when I  
write it down.

Thanks Aslak

More information about the rspec-users mailing list