aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-02-17 03:54:34 -0800
committerSantiago Pastorino <santiago@wyeworks.com>2012-02-17 03:54:34 -0800
commit1a0bc2ab7fbade57a24e3daa3512e4167641410d (patch)
tree81d2e485e83b167952e9cde7b84dd895f230d89d
parent45503ecbb998a317a266e66cf8c55bfe55951719 (diff)
parentc17608fe8fd8f0c7f8fdb1485c401fe344855432 (diff)
downloadrails-1a0bc2ab7fbade57a24e3daa3512e4167641410d.tar.gz
rails-1a0bc2ab7fbade57a24e3daa3512e4167641410d.tar.bz2
rails-1a0bc2ab7fbade57a24e3daa3512e4167641410d.zip
Merge pull request #5071 from arunagw/fix_failing_test_ruby187_p358
Fix failing test ruby187 p358
-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