Permalink
Browse files

test nested hash with float

[#652 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
bakineggs authored and jeremy committed Oct 12, 2008
1 parent cb45ee3 commit 0d4dbb3dfaec8355e072d8f758de40a277f2f009
Showing with 12 additions and 0 deletions.
  1. +12 −0 activesupport/test/json/encoding_test.rb
@@ -100,6 +100,18 @@ def test_time_to_json_includes_local_offset
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)

0 comments on commit 0d4dbb3

Please sign in to comment.