Sha256: 0cb7e83da39dd058221a2cfc23354e5cb577d0d26e8300eb7393e7b824776c48
Contents?: true
Size: 497 Bytes
Versions: 91
Compression:
Stored size: 497 Bytes
Contents
require 'spec_helper' describe WebMock::Util::HashKeysStringifier do it "should recursively stringify all symbol keys" do hash = { :a => { :b => [ { :c => [{:d => "1"}] } ] } } stringified = { 'a' => { 'b' => [ { 'c' => [{'d' => "1"}] } ] } } expect(WebMock::Util::HashKeysStringifier.stringify_keys!(hash, :deep => true)).to eq(stringified) end end
Version data entries
91 entries across 89 versions & 8 rubygems