mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix active_records' log tests
This commit is contained in:
parent
312570c488
commit
07b5146442
1 changed files with 3 additions and 2 deletions
|
@ -5,11 +5,12 @@ require "active_record/railties/log_subscriber"
|
|||
|
||||
class LogSubscriberTest < ActiveSupport::TestCase
|
||||
include Rails::LogSubscriber::TestHelper
|
||||
Rails::LogSubscriber.add(:active_record, ActiveRecord::Railties::LogSubscriber.new)
|
||||
|
||||
def setup
|
||||
@old_logger = ActiveRecord::Base.logger
|
||||
super
|
||||
|
||||
@old_logger = ActiveRecord::Base.logger
|
||||
Rails::LogSubscriber.add(:active_record, ActiveRecord::Railties::LogSubscriber.new)
|
||||
end
|
||||
|
||||
def teardown
|
||||
|
|
Loading…
Reference in a new issue