Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing test ruby187 p358 31stable #5072

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions activesupport/test/core_ext/hash_ext_test.rb
Expand Up @@ -1055,8 +1055,8 @@ def test_escaping_to_xml
:pre_escaped_string => 'First & 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
Expand Down