Skip to content

Instantly share code, notes, and snippets.

@wapcaplet
Created November 22, 2010 22:53
Show Gist options
  • Save wapcaplet/710877 to your computer and use it in GitHub Desktop.
Save wapcaplet/710877 to your computer and use it in GitHub Desktop.
Helpers in world not available from custom_env.rb
features/support/helpers/admin_helper.rb:
module AdminHelper
def create_admin_user(whatever)
# ...
end
end
World(AdminHelper)
features/support/custom_env.rb:
# I want to create some seed data shared by all scenarios
create_admin_user('admin')
###
$ cucumber features/whatever.feature
undefined method `create_admin_user' for #<Object:0x1763288> (NoMethodError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment