提交 0d4dbb3d 编写于 作者: D Dan Barry 提交者: Jeremy Kemper

test nested hash with float

[#652 state:committed]
Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
上级 cb45ee34
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册