diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-04-26 01:14:17 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-04-26 01:14:17 +0000 |
commit | ddd243a9c11b54fd13328a86a34ae997f63cb839 (patch) | |
tree | a0aa010a5e7e7410f28097512435c105a09cde2f /activesupport/test | |
parent | 15f06ea8c25b9570bb86a1b1b06ffe3d598b5710 (diff) | |
download | rails-ddd243a9c11b54fd13328a86a34ae997f63cb839.tar.gz rails-ddd243a9c11b54fd13328a86a34ae997f63cb839.tar.bz2 rails-ddd243a9c11b54fd13328a86a34ae997f63cb839.zip |
Pull file from xml value only if it's a Hash. Closes #8190.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6583 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/hash_ext_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb index ba121cc352..a428fe5061 100644 --- a/activesupport/test/core_ext/hash_ext_test.rb +++ b/activesupport/test/core_ext/hash_ext_test.rb @@ -572,6 +572,12 @@ class HashToXmlTest < Test::Unit::TestCase assert_equal expected, hash.to_xml(@xml_options) end end + + def test_empty_string_works_for_typecast_xml_value + assert_nothing_raised do + Hash.send(:typecast_xml_value, "") + end + end end class QueryTest < Test::Unit::TestCase |