git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10089
e93f8b46-1217-0410-a6f0-
8f06a7374b81
end
def assert_json_output(expected, &block)
- builder = Redmine::Views::Builders::Json.new
+ builder = Redmine::Views::Builders::Json.new(ActionDispatch::TestRequest.new, ActionDispatch::TestResponse.new)
block.call(builder)
assert_equal(expected, ActiveSupport::JSON.decode(builder.output))
end
end
def assert_xml_output(expected, &block)
- builder = Redmine::Views::Builders::Xml.new
+ builder = Redmine::Views::Builders::Xml.new(ActionDispatch::TestRequest.new, ActionDispatch::TestResponse.new)
block.call(builder)
assert_equal('<?xml version="1.0" encoding="UTF-8"?>' + expected, builder.output)
end