aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/hash_ext_test.rb
diff options
context:
space:
mode:
authorBradley Harris <bharris@sermo.com>2011-04-29 14:47:49 -0400
committerBradley Harris <bharris@sermo.com>2011-04-29 14:47:49 -0400
commitaba149d702e4dcd999ce1b71688ec15b0c637875 (patch)
treee54a345b51d7469c747e4315874477565f77ee0f /activesupport/test/core_ext/hash_ext_test.rb
parent245017765644745b0e550ceaf815ea4e73a12681 (diff)
downloadrails-aba149d702e4dcd999ce1b71688ec15b0c637875.tar.gz
rails-aba149d702e4dcd999ce1b71688ec15b0c637875.tar.bz2
rails-aba149d702e4dcd999ce1b71688ec15b0c637875.zip
Fix bug with empty CDATA not being handled in Hash.from_xml
Diffstat (limited to 'activesupport/test/core_ext/hash_ext_test.rb')
-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 20b1362bcf..3ef080e1cb 100644
--- a/activesupport/test/core_ext/hash_ext_test.rb
+++ b/activesupport/test/core_ext/hash_ext_test.rb
@@ -899,9 +899,9 @@ class HashToXmlTest < Test::Unit::TestCase
end
def test_empty_cdata_from_xml
- xml = "<content><![CDATA[]]></content>"
+ xml = "<data><![CDATA[]]></data>"
- assert_equal "", Hash.from_xml(xml)["content"]
+ assert_equal "", Hash.from_xml(xml)["data"]
end
def test_xsd_like_types_from_xml