diff options
author | Dan Barry <dan@bakineggs.com> | 2008-10-12 15:40:00 -0500 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-10-12 14:24:05 -0700 |
commit | 0d4dbb3dfaec8355e072d8f758de40a277f2f009 (patch) | |
tree | effb481de6b844b4b18b4ac3539b60596a2c066f /activesupport | |
parent | cb45ee344d5ec6974b78dc593e4eaef2101e3d42 (diff) | |
download | rails-0d4dbb3dfaec8355e072d8f758de40a277f2f009.tar.gz rails-0d4dbb3dfaec8355e072d8f758de40a277f2f009.tar.bz2 rails-0d4dbb3dfaec8355e072d8f758de40a277f2f009.zip |
test nested hash with float
[#652 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/json/encoding_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/activesupport/test/json/encoding_test.rb b/activesupport/test/json/encoding_test.rb index 497f028369..c070e0d9ed 100644 --- a/activesupport/test/json/encoding_test.rb +++ b/activesupport/test/json/encoding_test.rb @@ -100,6 +100,18 @@ class TestJSONEncoding < Test::Unit::TestCase ActiveSupport.use_standard_json_time_format = false end + def test_nested_hash_with_float + assert_nothing_raised do + hash = { + "CHI" => { + :dislay_name => "chicago", + :latitude => 123.234 + } + } + result = hash.to_json + end + end + protected def object_keys(json_object) |