From c17608fe8fd8f0c7f8fdb1485c401fe344855432 Mon Sep 17 00:00:00 2001
From: Arun Agrawal <arunagw@gmail.com>
Date: Fri, 17 Feb 2012 14:43:01 +0530
Subject: Fixes failing test with ruby 1.8.7-p358

Same as 91a9b2441783de118a2f9ec11b0aa3ae80133d91
---
 activesupport/test/core_ext/hash_ext_test.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'activesupport/test')

diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb
index eb8ed761da..56dfeb68cc 100644
--- a/activesupport/test/core_ext/hash_ext_test.rb
+++ b/activesupport/test/core_ext/hash_ext_test.rb
@@ -1058,8 +1058,8 @@ class HashToXmlTest < Test::Unit::TestCase
       :pre_escaped_string => 'First &amp; 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
-- 
cgit v1.2.3