diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-06-06 17:46:30 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-06-06 17:57:02 +0100 |
commit | afe19112286e42c87525240cd121706cbe3f7d2b (patch) | |
tree | 87d26779a3648287b19176af83c1ed6873571a7f | |
parent | fe5a6ec45fed40f784ee3daede9d0a5e61fdf1f1 (diff) | |
download | rails-afe19112286e42c87525240cd121706cbe3f7d2b.tar.gz rails-afe19112286e42c87525240cd121706cbe3f7d2b.tar.bz2 rails-afe19112286e42c87525240cd121706cbe3f7d2b.zip |
Fix another CIfail :zap: :fire: Deleting RAILS_ENV from ENV doesn't produce the desired result if RACK_ENV is still defined. And in any case it's better to be explicit here, so just set RALS_ENV=development.
-rw-r--r-- | railties/test/isolation/abstract_unit.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb index c0233c5f90..335e639692 100644 --- a/railties/test/isolation/abstract_unit.rb +++ b/railties/test/isolation/abstract_unit.rb @@ -91,7 +91,8 @@ module TestHelpers module Generation # Build an application by invoking the generator and going through the whole stack. def build_app(options = {}) - @prev_rails_env = ENV.delete('RAILS_ENV') + @prev_rails_env = ENV['RAILS_ENV'] + ENV['RAILS_ENV'] = 'development' FileUtils.rm_rf(app_path) FileUtils.cp_r(tmp_path('app_template'), app_path) |