From 0d4dbb3dfaec8355e072d8f758de40a277f2f009 Mon Sep 17 00:00:00 2001 From: Dan Barry Date: Sun, 12 Oct 2008 15:40:00 -0500 Subject: test nested hash with float [#652 state:committed] Signed-off-by: Jeremy Kemper --- activesupport/test/json/encoding_test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'activesupport/test') 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) -- cgit v1.2.3