diff options
author | Carl Lerche <carllerche@mac.com> | 2010-03-02 22:56:34 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-03-02 22:56:34 -0800 |
commit | 312570c488d71264eff83bb72b163005539a59fd (patch) | |
tree | bcc1f57446c11fd44fa5cd56287d37d857a683a3 | |
parent | 05f27761a23f3e939f35e4fb2d3c40f150dee49b (diff) | |
download | rails-312570c488d71264eff83bb72b163005539a59fd.tar.gz rails-312570c488d71264eff83bb72b163005539a59fd.tar.bz2 rails-312570c488d71264eff83bb72b163005539a59fd.zip |
Fix active_resource tests
-rw-r--r-- | activeresource/test/cases/log_subscriber_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
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) |