Permalink
Browse files

Somehow this fixes the AR tests when ran with rake. I should probably…

… figure out why.
  • Loading branch information...
1 parent 05b9382 commit 0de3b9ec93e7221cfe24bd13d57616d8d8d03a57 Carl Lerche committed Mar 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/log_subscriber_test.rb
View
2 activerecord/test/cases/log_subscriber_test.rb
@@ -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

0 comments on commit 0de3b9e

Please sign in to comment.