diff options
author | Arun Agrawal <arun@fromjaipur.com> | 2011-06-05 23:40:30 +0530 |
---|---|---|
committer | Arun Agrawal <arun@fromjaipur.com> | 2011-06-06 00:43:49 +0530 |
commit | 11d41e8b203329d75ec397f90baefe4b08976fb1 (patch) | |
tree | 919e7b89f21a0d3eb7f4c2e6ac1ff172d3bc1c32 /railties | |
parent | f9b41237c88346c83b1d6c1a231657905636e096 (diff) | |
download | rails-11d41e8b203329d75ec397f90baefe4b08976fb1.tar.gz rails-11d41e8b203329d75ec397f90baefe4b08976fb1.tar.bz2 rails-11d41e8b203329d75ec397f90baefe4b08976fb1.zip |
framework_test.rb also dependent on RAILS_ENV=development
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/initializers/frameworks_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/application/initializers/frameworks_test.rb b/railties/test/application/initializers/frameworks_test.rb index 196d121c14..9068bf4b1e 100644 --- a/railties/test/application/initializers/frameworks_test.rb +++ b/railties/test/application/initializers/frameworks_test.rb @@ -5,11 +5,17 @@ module ApplicationTests include ActiveSupport::Testing::Isolation def setup + @prev_rails_env = ENV['RAILS_ENV'] + ENV['RAILS_ENV'] = 'development' build_app boot_rails FileUtils.rm_rf "#{app_path}/config/environments" end + def teardown + ENV['RAILS_ENV'] = @prev_rails_env + end + # AC & AM test "set load paths set only if action controller or action mailer are in use" do assert_nothing_raised NameError do |