diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-12 14:11:47 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-13 01:19:22 +0100 |
commit | 1a275730b290c1f06d4e8df680d22ae1b41ab585 (patch) | |
tree | 46298bdbf71d7a3afeaa2de6bbc37008a12b37fd /railties/test/initializer | |
parent | 9dd4c79d6148890f49949686e709cfb035755068 (diff) | |
download | rails-1a275730b290c1f06d4e8df680d22ae1b41ab585.tar.gz rails-1a275730b290c1f06d4e8df680d22ae1b41ab585.tar.bz2 rails-1a275730b290c1f06d4e8df680d22ae1b41ab585.zip |
Set deprecation warnings for RAILS_ENV and RAILS_DEFAULT_LOGGER.
Diffstat (limited to 'railties/test/initializer')
-rw-r--r-- | railties/test/initializer/path_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/initializer/path_test.rb b/railties/test/initializer/path_test.rb index bfb1887d11..328dda6d2c 100644 --- a/railties/test/initializer/path_test.rb +++ b/railties/test/initializer/path_test.rb @@ -63,7 +63,7 @@ module InitializerTests end test "environments has a glob equal to the current environment" do - assert_equal "#{RAILS_ENV}.rb", @paths.config.environments.glob + assert_equal "#{Rails.env}.rb", @paths.config.environments.glob end test "load path includes each of the paths in config.paths as long as the directories exist" do @@ -85,17 +85,17 @@ module InitializerTests end test "controller paths include builtin in development mode" do - RAILS_ENV.replace "development" + Rails.env.replace "development" assert Rails::Configuration.new.paths.app.controllers.paths.any? { |p| p =~ /builtin/ } end test "controller paths does not have builtin_directories in test mode" do - RAILS_ENV.replace "test" + Rails.env.replace "test" assert !Rails::Configuration.new.paths.app.controllers.paths.any? { |p| p =~ /builtin/ } end test "controller paths does not have builtin_directories in production mode" do - RAILS_ENV.replace "production" + Rails.env.replace "production" assert !Rails::Configuration.new.paths.app.controllers.paths.any? { |p| p =~ /builtin/ } end |