From 8e51383a6b65c5e20bbee83a3023b81ab6791c45 Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Mon, 6 Jun 2011 00:55:24 +0530 Subject: loading_test.rb with RAILS_ENV=development --- railties/test/application/loading_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'railties/test') diff --git a/railties/test/application/loading_test.rb b/railties/test/application/loading_test.rb index c340465e87..5e7e16733e 100644 --- a/railties/test/application/loading_test.rb +++ b/railties/test/application/loading_test.rb @@ -4,10 +4,16 @@ 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 + end + def app @app ||= Rails.application end -- cgit v1.2.3