Created
July 1, 2010 15:50
-
-
Save jhollingworth/460143 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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