diff options
Diffstat (limited to 'railties')
-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}" |