Skip to content
Browse files

Fix another CIfail 🔥 Deleting RAILS_ENV from ENV doesn't produce th…

…e 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.
  • Loading branch information...
1 parent d55cf30 commit 5ffd03f423bbe6e2e73701564c7b268ff7c16fbc @jonleighton jonleighton committed Jun 6, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/test/isolation/abstract_unit.rb
View
3 railties/test/isolation/abstract_unit.rb
@@ -79,7 +79,8 @@ def assert_body(expected, resp)
module Generation
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)

0 comments on commit 5ffd03f

Please sign in to comment.
Something went wrong with that request. Please try again.