Sha256: 1ea4c5b1f18245265ada80628715e0931f0a0d4f3de3f03d969759465afff101
Contents?: true
Size: 492 Bytes
Versions: 5
Compression:
Stored size: 492 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"}] } ] } } WebMock::Util::HashKeysStringifier.stringify_keys!(hash, :deep => true).should == stringified end end
Version data entries
5 entries across 5 versions & 1 rubygems