Skip to content
This repository
Browse code

Fixed failing test for ruby-1.8.7-p357

See #4292
  • Loading branch information...
commit 91a9b2441783de118a2f9ec11b0aa3ae80133d91 1 parent a048568
Arun Agrawal authored January 07, 2012
4  activesupport/test/core_ext/hash_ext_test.rb
@@ -959,8 +959,8 @@ def test_escaping_to_xml
959 959
       :pre_escaped_string => 'First & Last Name'
960 960
     }.stringify_keys
961 961
 
962  
-    expected_xml = '<person><bare-string>First &amp; Last Name</bare-string><pre-escaped-string>First &amp;amp; Last Name</pre-escaped-string></person>'
963  
-    assert_equal expected_xml, hash.to_xml(@xml_options)
  962
+    assert hash.to_xml(@xml_options).include?("<bare-string>First &amp; Last Name</bare-string>")
  963
+    assert hash.to_xml(@xml_options).include?("<pre-escaped-string>First &amp;amp; Last Name</pre-escaped-string>")
964 964
   end
965 965
 
966 966
   def test_unescaping_from_xml

0 notes on commit 91a9b24

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