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:
1 parent
3c3bdb8bb0
commit
8088749f10
2 files changed
+2
-2
No files matched your search
@@ -87,7 +87,7 @@ class Redmine::Views::Builders::JsonTest < ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def assert_json_output(expected, &block)
|
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)
|
block.call(builder)
|
||||||
assert_equal(expected, ActiveSupport::JSON.decode(builder.output))
|
assert_equal(expected, ActiveSupport::JSON.decode(builder.output))
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class Redmine::Views::Builders::XmlTest < ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def assert_xml_output(expected, &block)
|
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)
|
block.call(builder)
|
||||||
assert_equal('<?xml version="1.0" encoding="UTF-8"?>' + expected, builder.output)
|
assert_equal('<?xml version="1.0" encoding="UTF-8"?>' + expected, builder.output)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user