mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #5071 from arunagw/fix_failing_test_ruby187_p358
Fix failing test ruby187 p358
This commit is contained in:
@@ -1058,8 +1058,8 @@ class HashToXmlTest < Test::Unit::TestCase
|
||||
:pre_escaped_string => 'First & Last Name'
|
||||
}.stringify_keys
|
||||
|
||||
expected_xml = '<person><bare-string>First & Last Name</bare-string><pre-escaped-string>First &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 & Last Name</bare-string>")
|
||||
assert hash.to_xml(@xml_options).include?("<pre-escaped-string>First &amp; Last Name</pre-escaped-string>")
|
||||
end
|
||||
|
||||
def test_unescaping_from_xml
|
||||
|
||||
Reference in New Issue
Block a user