Fixes failing test with ruby 1.8.7-p358

Same as 91a9b24417
This commit is contained in:
Arun Agrawal
2012-02-17 14:43:01 +05:30
parent a1b9acb72e
commit c17608fe8f

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