[rspec-users] [Cucumber] Directory Layout

s.ross cwdinfo at gmail.com
Thu Jan 22 17:51:31 EST 2009


I had a relatively flat layout and wanted to group like features  
together so I made it more hierarchical:

features/
   messaging/
     main_screen.feature
     message_page.feature
     steps/
       main_screen.rb
       messaging_steps.rb

This may be just my boneheadedness, but when I do:

cucumber features/messaging -r features/support/env.rb

These run, but none of the steps are matched. It seems the step  
matchers are not expected to be where I put them.

Questions:

- Is there a more sensible layout?
- Is there an easier way than -r features/support/env.rb to get the  
machinist plugin to load?

Thanks


More information about the rspec-users mailing list