diff options
author | Carl Lerche <carllerche@mac.com> | 2010-03-02 23:01:31 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-03-02 23:01:31 -0800 |
commit | 07b5146442afbfd8c3b5db9ba8c66382889910ef (patch) | |
tree | 2738fdf21b8ea9f84e789df4938621c34a0814e0 /activerecord/test/cases | |
parent | 312570c488d71264eff83bb72b163005539a59fd (diff) | |
download | rails-07b5146442afbfd8c3b5db9ba8c66382889910ef.tar.gz rails-07b5146442afbfd8c3b5db9ba8c66382889910ef.tar.bz2 rails-07b5146442afbfd8c3b5db9ba8c66382889910ef.zip |
Fix active_records' log tests
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/log_subscriber_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/test/cases/log_subscriber_test.rb b/activerecord/test/cases/log_subscriber_test.rb index f0197ddf77..9e46de50d5 100644 --- a/activerecord/test/cases/log_subscriber_test.rb +++ b/activerecord/test/cases/log_subscriber_test.rb @@ -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 |