Browse files

Fixed failing test for ruby-1.8.7-p357

See #4292
  • Loading branch information...
1 parent a048568 commit 91a9b2441783de118a2f9ec11b0aa3ae80133d91 @arunagw arunagw committed Jan 7, 2012
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
@@ -959,8 +959,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 91a9b24

Please sign in to comment.