On 8 May 2009, at 15:24, aslak hellesoy wrote:

So are you saying we'd put the steps in a gem, then include them using require?

So I can do this in my env file:

       gem 'cucumber-steps'

       require 'cucumber/steps/webrat'
       require 'cucumber/steps/factory_girl'

or in another project that uses the command line:

       gem 'cucumber-steps'

       require 'cucumber/steps/console'

Is that the kind of thing you mean?

Yes.

I think it would be good to allow for steps that cater to different use cases to all be in the same library but allow you to pick and chose the ones that are relevant to your project.

So several files in the same gem? Different requires?

Yes, exactly. WDYT?

Matt Wynne
http://beta.songkick.com
http://blog.mattwynne.net



_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to