diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-09-13 23:33:54 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-09-13 23:33:54 -0500 |
commit | 988a614dd289ea27d41f8ab0d76a3b64124768b1 (patch) | |
tree | 596b9764ceccbc459dc24c426c294ba7a47bd777 | |
parent | a42c8958f99d9cc5f8be844098dfb762f72dba7a (diff) | |
download | rails-988a614dd289ea27d41f8ab0d76a3b64124768b1.tar.gz rails-988a614dd289ea27d41f8ab0d76a3b64124768b1.tar.bz2 rails-988a614dd289ea27d41f8ab0d76a3b64124768b1.zip |
Don't run `gem bundle` by default
-rw-r--r-- | actionpack/test/bundler_helper.rb | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/actionpack/test/bundler_helper.rb b/actionpack/test/bundler_helper.rb index 5f3e982f19..1e379b9a9b 100644 --- a/actionpack/test/bundler_helper.rb +++ b/actionpack/test/bundler_helper.rb @@ -1,30 +1,11 @@ -BUNDLER_ENV_FILE = File.join(File.dirname(__FILE__), '..', 'vendor', 'gems', 'environment') - -def load_bundled_gems - load_bundled_gems! if File.exist?("#{BUNDLER_ENV_FILE}.rb") -end - -def load_bundled_gems! - puts "Checking if the bundled testing requirements are up to date..." - - result = system "gem bundle" - unless result - puts "The gem bundler is not installed. Installing." - system "gem install bundler" - system "gem bundle" - end - - require BUNDLER_ENV_FILE -end - def ensure_requirable(libs) - load_bundled_gems + 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 - puts "Missing required libs to run test" puts e.message - load_bundled_gems! + exit 1 end end |