Somehow this fixes the AR tests when ran with rake. I should probably figure out why.

This commit is contained in:
Carl Lerche 2010-03-04 02:20:01 -08:00
parent 05b9382e29
commit 0de3b9ec93
1 changed files with 1 additions and 1 deletions

View File

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