Permalink
Browse files

Fix active_resource tests

  • Loading branch information...
Carl Lerche
Carl Lerche committed Mar 3, 2010
1 parent 05f2776 commit 312570c488d71264eff83bb72b163005539a59fd
Showing with 3 additions and 2 deletions.
  1. +3 −2 activeresource/test/cases/log_subscriber_test.rb
@@ -7,15 +7,16 @@
# 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)

0 comments on commit 312570c

Please sign in to comment.