diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-06-05 18:27:52 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-06-05 18:27:52 +0100 |
commit | f9b41237c88346c83b1d6c1a231657905636e096 (patch) | |
tree | 3506d8e245be9834bef1814195ccce5dc9d0e6d1 | |
parent | 4ecca0f9853046cf8d717cdd9cdf6ea3457c8609 (diff) | |
download | rails-f9b41237c88346c83b1d6c1a231657905636e096.tar.gz rails-f9b41237c88346c83b1d6c1a231657905636e096.tar.bz2 rails-f9b41237c88346c83b1d6c1a231657905636e096.zip |
load_path_test.rb is also dependent on RAILS_ENV=development
-rw-r--r-- | railties/test/application/initializers/load_path_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/application/initializers/load_path_test.rb b/railties/test/application/initializers/load_path_test.rb index 714d62311d..e3d9e8e4b3 100644 --- a/railties/test/application/initializers/load_path_test.rb +++ b/railties/test/application/initializers/load_path_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 + test "initializing an application adds the application paths to the load path" do add_to_config <<-RUBY config.root = "#{app_path}" |