From f9b41237c88346c83b1d6c1a231657905636e096 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Sun, 5 Jun 2011 18:27:52 +0100 Subject: load_path_test.rb is also dependent on RAILS_ENV=development --- railties/test/application/initializers/load_path_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'railties') 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}" -- cgit v1.2.3