aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-03-02 22:56:34 -0800
committerCarl Lerche <carllerche@mac.com>2010-03-02 22:56:34 -0800
commit312570c488d71264eff83bb72b163005539a59fd (patch)
treebcc1f57446c11fd44fa5cd56287d37d857a683a3 /activeresource/test
parent05f27761a23f3e939f35e4fb2d3c40f150dee49b (diff)
downloadrails-312570c488d71264eff83bb72b163005539a59fd.tar.gz
rails-312570c488d71264eff83bb72b163005539a59fd.tar.bz2
rails-312570c488d71264eff83bb72b163005539a59fd.zip
Fix active_resource tests
Diffstat (limited to 'activeresource/test')
-rw-r--r--activeresource/test/cases/log_subscriber_test.rb5
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)