Skip to content
This repository
Browse code

fixed failing test in ruby-1.8.7-p358

  • Loading branch information...
commit 0bf4dc82a7710df3b09f202d6fe492c7b55a3668 1 parent db9b1a7
Arun Agrawal authored February 17, 2012
4  activesupport/test/core_ext/hash_ext_test.rb
@@ -1055,8 +1055,8 @@ def test_escaping_to_xml
1055 1055
       :pre_escaped_string => 'First & Last Name'
1056 1056
     }.stringify_keys
1057 1057
 
1058  
-    expected_xml = '<person><bare-string>First &amp; Last Name</bare-string><pre-escaped-string>First &amp;amp; Last Name</pre-escaped-string></person>'
1059  
-    assert_equal expected_xml, hash.to_xml(@xml_options)
  1058
+    assert hash.to_xml(@xml_options).include?("<bare-string>First &amp; Last Name</bare-string>")
  1059
+    assert hash.to_xml(@xml_options).include?("<pre-escaped-string>First &amp;amp; Last Name</pre-escaped-string>")
1060 1060
   end
1061 1061
 
1062 1062
   def test_unescaping_from_xml

0 notes on commit 0bf4dc8

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