aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2012-02-17 14:43:01 +0530
committerArun Agrawal <arunagw@gmail.com>2012-02-17 14:43:34 +0530
commitc17608fe8fd8f0c7f8fdb1485c401fe344855432 (patch)
treea8f18c8e1aed46735240739effc4125f51dbdbc5 /activesupport
parenta1b9acb72ec4b3a3d11f77efe64effb79e58b45d (diff)
downloadrails-c17608fe8fd8f0c7f8fdb1485c401fe344855432.tar.gz
rails-c17608fe8fd8f0c7f8fdb1485c401fe344855432.tar.bz2
rails-c17608fe8fd8f0c7f8fdb1485c401fe344855432.zip
Fixes failing test with ruby 1.8.7-p358
Same as 91a9b2441783de118a2f9ec11b0aa3ae80133d91
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/hash_ext_test.rb4
1 files changed, 2 insertions, 2 deletions
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