aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/bundler_helper.rb
blob: f7357bdb41727a7a3eab157e24966a00b567be41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
def ensure_requirable(libs)
  bundler = File.join(File.dirname(__FILE__), '..', 'vendor', 'gems', 'environment')
  require bundler if File.exist?("#{bundler}.rb")

  begin
    libs.each { |lib| require lib }
  rescue LoadError => e
    abort e.message
  end
end