Somehow this fixes the AR tests when ran with rake. I should probably figure out why.
This commit is contained in:
parent
05b9382e29
commit
0de3b9ec93
@ -7,9 +7,9 @@ class LogSubscriberTest < ActiveSupport::TestCase
|
||||
include Rails::LogSubscriber::TestHelper
|
||||
|
||||
def setup
|
||||
@old_logger = ActiveRecord::Base.logger
|
||||
super
|
||||
|
||||
@old_logger = ActiveRecord::Base.logger
|
||||
Rails::LogSubscriber.add(:active_record, ActiveRecord::Railties::LogSubscriber.new)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user