From fe2b411be67d803cc5dce647f716709f0aa70665 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Mon, 6 Jun 2011 17:46:30 +0100 Subject: [PATCH] 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. --- railties/test/isolation/abstract_unit.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb index 454b7073cf..6ea90a40f5 100644 --- a/railties/test/isolation/abstract_unit.rb +++ b/railties/test/isolation/abstract_unit.rb @@ -92,7 +92,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)