Sha256: e53fcf485738d0439d85331b455aa8137eb3d3f805f957b54f49d203768923fb
Contents?: true
Size: 516 Bytes
Versions: 15
Compression:
Stored size: 516 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Propono class HashTest < Minitest::Test def test_symbolize_keys_works input = { "foo" => "bar", cat: 1, "nest" => { "dog" => [ {"mouse" => true} ] } } expected = { foo: 'bar', cat: 1, nest: { dog: [ {"mouse" => true} ] } } assert_equal expected, input.symbolize_keys end end end
Version data entries
15 entries across 15 versions & 1 rubygems