diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 11:35:20 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 12:11:02 -0300 |
commit | c2e865849beadd99866e521a93d733da7d1b5255 (patch) | |
tree | 0234bfe1aa887a038933bbaa39cca978a5517cd7 /railties/test | |
parent | a502703c3d2151d4d3b421b29fefdac5ad05df61 (diff) | |
download | rails-c2e865849beadd99866e521a93d733da7d1b5255.tar.gz rails-c2e865849beadd99866e521a93d733da7d1b5255.tar.bz2 rails-c2e865849beadd99866e521a93d733da7d1b5255.zip |
Remove deprecation warning when log_level is not explicit set on production
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/configuration_test.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index ad15e30b6a..b3995c9a6f 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -1062,36 +1062,6 @@ module ApplicationTests end end - test "Blank config.log_level is not deprecated for non-production environment" do - with_rails_env "development" do - assert_not_deprecated do - make_basic_app do |application| - application.config.log_level = nil - end - end - end - end - - test "Blank config.log_level is deprecated for the production environment" do - with_rails_env "production" do - assert_deprecated(/log_level/) do - make_basic_app do |application| - application.config.log_level = nil - end - end - end - end - - test "Not blank config.log_level is not deprecated for the production environment" do - with_rails_env "production" do - assert_not_deprecated do - make_basic_app do |application| - application.config.log_level = :info - end - end - end - end - test "config.log_level with custom logger" do make_basic_app do |application| application.config.logger = Logger.new(STDOUT) |