Skip to content

Instantly share code, notes, and snippets.

@jhollingworth
Created July 1, 2010 15:50
Show Gist options
  • Save jhollingworth/460143 to your computer and use it in GitHub Desktop.
Save jhollingworth/460143 to your computer and use it in GitHub Desktop.
#Needed to pass each module to the cucumber World() method
#/helpers/foo_helper.rb
module FooHelpers
def foo()
puts "foo"
end
end
World(FooHelpers)
#/helpers/bar_helper.rb
module BarHelpers
def bar()
puts "bar"
end
end
World(BarHelpers)
#/env.rb
Dir[File.dirname(__FILE__) + '/../helpers/*.rb'].each{ |f| require f }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment