Guest User

Untitled

a guest
May 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #Needed to pass each module to the cucumber World() method
  2.  
  3. #/helpers/foo_helper.rb
  4.  
  5. module FooHelpers
  6. def foo()
  7. puts "foo"
  8. end
  9. end
  10.  
  11. World(FooHelpers)
  12.  
  13. #/helpers/bar_helper.rb
  14.  
  15. module BarHelpers
  16. def bar()
  17. puts "bar"
  18. end
  19. end
  20.  
  21. World(BarHelpers)
  22.  
  23. #/env.rb
  24.  
  25. Dir[File.dirname(__FILE__) + '/../helpers/*.rb'].each{ |f| require f }
Add Comment
Please, Sign In to add comment