aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/log_subscriber/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/log_subscriber/test_helper.rb')
-rw-r--r--activesupport/lib/active_support/log_subscriber/test_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/log_subscriber/test_helper.rb b/activesupport/lib/active_support/log_subscriber/test_helper.rb
index 5c7a238934..b65ea6208c 100644
--- a/activesupport/lib/active_support/log_subscriber/test_helper.rb
+++ b/activesupport/lib/active_support/log_subscriber/test_helper.rb
@@ -31,6 +31,7 @@ module ActiveSupport
# powers (it actually does not send anything to your output), and you can collect them
# doing @logger.logged(level), where level is the level used in logging, like info,
# debug, warn and so on.
+ #
module TestHelper
def setup
@logger = MockLogger.new
@@ -95,6 +96,7 @@ module ActiveSupport
# def logger
# ActiveRecord::Base.logger = @logger
# end
+ #
def set_logger(logger)
ActiveSupport::LogSubscriber.logger = logger
end