Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow including custom helpers into the World #51

Closed
coffeencoke opened this issue Nov 6, 2011 · 1 comment
Closed

Allow including custom helpers into the World #51

coffeencoke opened this issue Nov 6, 2011 · 1 comment

Comments

@coffeencoke
Copy link

I would like the ability to do something like this in my env.rb:

Dir[File.join(File.dirname(__FILE__), 'helpers', "/*.rb")].each { |f| require f }
World(LaunchHelper)

So that I can include my own helpers. If you would like to give me some direction on where to do this, I may be able to do it.

@moredip
Copy link
Owner

moredip commented Nov 9, 2011

Any file that you add to the support directory should be evaulated by cucumber during startup. If you want to create your own helpers it should be as simple as just adding a launch_helper.rb file to that directory, and then adding the World(LaunchHelper) call to your env.rb.

@moredip moredip closed this as completed Feb 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants