1
0
Fork 0
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:
Carl Lerche 2010-03-02 23:01:31 -08:00
parent 312570c488
commit 07b5146442

View file

@ -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