Guest User

Untitled

a guest
May 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. require "rubygems"
  2.  
  3. # Add the local gems dir if found within the app root; any dependencies loaded
  4. # hereafter will try to load from the local gems before loading system gems.
  5. if (local_gem_dir = File.join(File.dirname(__FILE__), '..', 'gems')) && $BUNDLE.nil?
  6. $BUNDLE = true; Gem.clear_paths; Gem.path.unshift(local_gem_dir)
  7. end
  8.  
  9. require "merb-core"
  10. require "spec" # Satisfies Autotest and anyone else not using the Rake tasks
  11.  
  12. # this loads all plugins required in your init file so don't add them
  13. # here again, Merb will do it for you
  14. Merb.start_environment(:testing => true, :adapter => 'runner', :environment => ENV['MERB_ENV'] || 'test')
  15.  
  16. Spec::Runner.configure do |config|
  17. config.include(Merb::Test::ViewHelper)
  18. config.include(Merb::Test::RouteHelper)
  19. config.include(Merb::Test::ControllerHelper)
  20. end
Add Comment
Please, Sign In to add comment