Permalink
Browse files

Merge pull request #5072 from arunagw/fix_failing_test_ruby187_p358_3…

…1stable

Fix failing test ruby187 p358 31stable
  • Loading branch information...
2 parents 27357a6 + 0bf4dc8 commit fd2b2752448f314a936e37acd268e8ea86d326e5 @spastorino spastorino committed Feb 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/core_ext/hash_ext_test.rb
@@ -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

0 comments on commit fd2b275

Please sign in to comment.