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
|
include Rails::LogSubscriber::TestHelper
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
@old_logger = ActiveRecord::Base.logger
|
||||||
super
|
super
|
||||||
|
|
||||||
@old_logger = ActiveRecord::Base.logger
|
|
||||||
Rails::LogSubscriber.add(:active_record, ActiveRecord::Railties::LogSubscriber.new)
|
Rails::LogSubscriber.add(:active_record, ActiveRecord::Railties::LogSubscriber.new)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue