Permalink
Browse files

load_path_test.rb is also dependent on RAILS_ENV=development

  • Loading branch information...
1 parent 4ecca0f commit f9b41237c88346c83b1d6c1a231657905636e096 @jonleighton jonleighton committed Jun 5, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/test/application/initializers/load_path_test.rb
@@ -5,11 +5,17 @@ class LoadPathTest < Test::Unit::TestCase
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}"

0 comments on commit f9b4123

Please sign in to comment.