Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed failing test in ruby-1.8.7-p358

  • Loading branch information...
commit 0bf4dc82a7710df3b09f202d6fe492c7b55a3668 1 parent db9b1a7
@arunagw arunagw authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/core_ext/hash_ext_test.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.