diff options
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/clean_logger_test.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/activesupport/test/clean_logger_test.rb b/activesupport/test/clean_logger_test.rb index c5ddc713c2..2ff3fd6832 100644 --- a/activesupport/test/clean_logger_test.rb +++ b/activesupport/test/clean_logger_test.rb @@ -32,7 +32,14 @@ class CleanLoggerTest < Test::Unit::TestCase logger.fatal 'fatal' end - assert_equal "error\nfatal\nerror\nfatal\n", @out.string + # Silencer off. + Logger.silencer = false + @logger.silence do |logger| + logger.warn 'unsilenced' + end + Logger.silencer = true + + assert_equal "error\nfatal\nerror\nfatal\nunsilenced\n", @out.string end end |