Sha256: 16b418c8408fc8433909f1e95105872e4b304c7dc36d6d7a16d3a051f560bb92
Contents?: true
Size: 402 Bytes
Versions: 36
Compression:
Stored size: 402 Bytes
Contents
require 'spec_helper' describe ButterCMS::HashToObject do describe '.convert' do it 'converts hash to object' do hash = { "key1" => "value", "key2" => { "nested_key" => "nested value" } } obj = ButterCMS::HashToObject.convert(hash) expect(obj.key1).to eq 'value' expect(obj.key2.nested_key).to eq "nested value" end end end
Version data entries
36 entries across 36 versions & 3 rubygems