Skip to content
Browse files

Fixes failing test with ruby 1.8.7-p358

Same as 91a9b24
  • Loading branch information...
1 parent a1b9acb commit c17608fe8fd8f0c7f8fdb1485c401fe344855432 @arunagw arunagw committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/core_ext/hash_ext_test.rb
4 activesupport/test/core_ext/hash_ext_test.rb
@@ -1058,8 +1058,8 @@ def test_escaping_to_xml
:pre_escaped_string => 'First & Last Name'
- 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>")
def test_unescaping_from_xml

0 comments on commit c17608f

Please sign in to comment.
Something went wrong with that request. Please try again.