diff options
Diffstat (limited to 'actionpack/test/bundler_helper.rb')
-rw-r--r-- | actionpack/test/bundler_helper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/test/bundler_helper.rb b/actionpack/test/bundler_helper.rb new file mode 100644 index 0000000000..f7357bdb41 --- /dev/null +++ b/actionpack/test/bundler_helper.rb @@ -0,0 +1,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 |