aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorArun Agrawal <arun@fromjaipur.com>2011-06-06 00:55:24 +0530
committerArun Agrawal <arun@fromjaipur.com>2011-06-06 00:55:24 +0530
commit8e51383a6b65c5e20bbee83a3023b81ab6791c45 (patch)
tree8e79fbf29c12d659cdc6765acb85a5f1c2049c63 /railties/test
parent11d41e8b203329d75ec397f90baefe4b08976fb1 (diff)
downloadrails-8e51383a6b65c5e20bbee83a3023b81ab6791c45.tar.gz
rails-8e51383a6b65c5e20bbee83a3023b81ab6791c45.tar.bz2
rails-8e51383a6b65c5e20bbee83a3023b81ab6791c45.zip
loading_test.rb with RAILS_ENV=development
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/loading_test.rb6
1 files changed, 6 insertions, 0 deletions
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