From 312570c488d71264eff83bb72b163005539a59fd Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Tue, 2 Mar 2010 22:56:34 -0800 Subject: Fix active_resource tests --- activeresource/test/cases/log_subscriber_test.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'activeresource/test') diff --git a/activeresource/test/cases/log_subscriber_test.rb b/activeresource/test/cases/log_subscriber_test.rb index 5df2cad599..f0330e8f51 100644 --- a/activeresource/test/cases/log_subscriber_test.rb +++ b/activeresource/test/cases/log_subscriber_test.rb @@ -7,15 +7,16 @@ require "active_support/core_ext/hash/conversions" # TODO: This test should be part of Railties class LogSubscriberTest < ActiveSupport::TestCase include Rails::LogSubscriber::TestHelper - Rails::LogSubscriber.add(:active_resource, ActiveResource::Railties::LogSubscriber.new) def setup + super + @matz = { :id => 1, :name => 'Matz' }.to_xml(:root => 'person') ActiveResource::HttpMock.respond_to do |mock| mock.get "/people/1.xml", {}, @matz end - super + Rails::LogSubscriber.add(:active_resource, ActiveResource::Railties::LogSubscriber.new) end def set_logger(logger) -- cgit v1.2.3