Fixed tests broken by r10088.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10089 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-07-28 14:59:36 +00:00
parent 3c3bdb8bb0
commit 8088749f10
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ class Redmine::Views::Builders::JsonTest < ActiveSupport::TestCase
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

View File

@ -60,7 +60,7 @@ class Redmine::Views::Builders::XmlTest < ActiveSupport::TestCase
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