Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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 }
Add Comment
Please, Sign In to add comment