mirror of
https://github.com/github/rails.git
synced 2026-01-26 06:48:59 -05:00
test nested hash with float
[#652 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user