Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test nested hash with float

[#652 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
commit 0d4dbb3dfaec8355e072d8f758de40a277f2f009 1 parent cb45ee3
@bakineggs bakineggs authored jeremy committed
Showing with 12 additions and 0 deletions.
  1. +12 −0 activesupport/test/json/encoding_test.rb
View
12 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)
Please sign in to comment.
Something went wrong with that request. Please try again.