Sha256: f1b5681664db88552ec667415f0125d5b0732218692f910ee29994304ca4c42f
Contents?: true
Size: 477 Bytes
Versions: 47
Compression:
Stored size: 477 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).should == stringified end end
Version data entries
47 entries across 47 versions & 4 rubygems