Merge pull request #5071 from arunagw/fix_failing_test_ruby187_p358

Fix failing test ruby187 p358
This commit is contained in:
Santiago Pastorino
2012-02-17 03:54:34 -08:00

View File

@@ -1058,8 +1058,8 @@ class HashToXmlTest < Test::Unit::TestCase
:pre_escaped_string => 'First &amp; Last Name'
}.stringify_keys
expected_xml = '<person><bare-string>First &amp; Last Name</bare-string><pre-escaped-string>First &amp;amp; Last Name</pre-escaped-string></person>'
assert_equal expected_xml, hash.to_xml(@xml_options)
assert hash.to_xml(@xml_options).include?("<bare-string>First &amp; Last Name</bare-string>")
assert hash.to_xml(@xml_options).include?("<pre-escaped-string>First &amp;amp; Last Name</pre-escaped-string>")
end
def test_unescaping_from_xml