From 126879823cbb506e4fa08d28d2ebe71abfbdb6e7 Mon Sep 17 00:00:00 2001 From: Dan Barry Date: Sun, 12 Oct 2008 15:40:00 -0500 Subject: [PATCH] test nested hash with float --- 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 497f028..c070e0d 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) -- 1.5.4.2