提交 83f9cdb0 编写于 作者: K Kevin McPhillips

Be explicit about what Logger class is expected

上级 99bd118e
......@@ -143,9 +143,9 @@ def test_silencing_everything_but_errors
def test_logger_silencing_works_for_broadcast
another_output = StringIO.new
another_logger = Logger.new(another_output)
another_logger = ActiveSupport::Logger.new(another_output)
@logger.extend Logger.broadcast(another_logger)
@logger.extend ActiveSupport::Logger.broadcast(another_logger)
@logger.debug "CORRECT DEBUG"
@logger.silence do
......@@ -166,7 +166,7 @@ def test_broadcast_silencing_does_not_break_plain_ruby_logger
another_output = StringIO.new
another_logger = ::Logger.new(another_output)
@logger.extend Logger.broadcast(another_logger)
@logger.extend ActiveSupport::Logger.broadcast(another_logger)
@logger.debug "CORRECT DEBUG"
@logger.silence do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册