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

Version Path
propono-1.3.0 test/helpers/hash_test.rb
propono-1.2.0 test/helpers/hash_test.rb
propono-1.1.3 test/helpers/hash_test.rb
propono-1.1.2 test/helpers/hash_test.rb
propono-1.1.1 test/helpers/hash_test.rb
propono-1.1.0 test/helpers/hash_test.rb
propono-1.0.0 test/helpers/hash_test.rb
propono-1.0.0.rc3 test/helpers/hash_test.rb
propono-1.0.0.rc2 test/helpers/hash_test.rb
propono-1.0.0.rc1 test/helpers/hash_test.rb
propono-0.11.1 test/helpers/hash_test.rb
propono-0.11.0 test/helpers/hash_test.rb
propono-0.10.0 test/helpers/hash_test.rb
propono-0.9.1 test/helpers/hash_test.rb
propono-0.9.0 test/helpers/hash_test.rb