From 62570e8626c67f9d38b28246304b938aab9d9fbe Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Mon, 6 Jun 2011 13:54:05 +0100 Subject: Solve the RAILS_ENV problem in the railties tests in a more generic way --- railties/test/application/loading_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'railties/test/application/loading_test.rb') diff --git a/railties/test/application/loading_test.rb b/railties/test/application/loading_test.rb index 5e7e16733e..47c6fd5c6e 100644 --- a/railties/test/application/loading_test.rb +++ b/railties/test/application/loading_test.rb @@ -4,14 +4,12 @@ class LoadingTest < Test::Unit::TestCase include ActiveSupport::Testing::Isolation def setup - @prev_rails_env = ENV['RAILS_ENV'] - ENV['RAILS_ENV'] = 'development' build_app boot_rails end def teardown - ENV['RAILS_ENV'] = @prev_rails_env + teardown_app end def app -- cgit v1.2.3