提交 557ac34f 编写于 作者: Y Yves Senn

Merge pull request #14515 from mzahir/fix_xml_warning

Fix warning for overshadowing XML variable
......@@ -118,10 +118,10 @@ def setup
end
test "should include yielded additions" do
xml = @contact.to_xml do |xml|
xml_output = @contact.to_xml do |xml|
xml.creator "David"
end
assert_match %r{<creator>David</creator>}, xml
assert_match %r{<creator>David</creator>}, xml_output
end
test "should serialize string" do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册