提交 312570c4 编写于 作者: C Carl Lerche

Fix active_resource tests

上级 05f27761
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册