Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix active_resource tests

  • Loading branch information...
commit 312570c488d71264eff83bb72b163005539a59fd 1 parent 05f2776
Carl Lerche authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 activeresource/test/cases/log_subscriber_test.rb
View
5 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)
Please sign in to comment.
Something went wrong with that request. Please try again.