Sha256: 197609871fd8b6461bd296679a0c813f1e2db7c166bfd70a82e8df31eabe06b9
Contents?: true
Size: 333 Bytes
Versions: 16
Compression:
Stored size: 333 Bytes
Contents
# encoding: UTF-8 describe Hash do describe '#deep_dup' do it 'should crete a deep copy' do x = { :a => { :b => :c } } y = x.dup deep_y = x.deep_dup y[:a].object_id.should === x[:a].object_id deep_y[:a].object_id.should_not === x[:a].object_id end end end
Version data entries
16 entries across 16 versions & 1 rubygems