Sha256: 225d621fb93e6e3166f3e635861479385e8116e868b53c4e467c9081323d19bf
Contents?: true
Size: 228 Bytes
Versions: 23
Compression:
Stored size: 228 Bytes
Contents
describe "Hash#dup" do it "copies instance variable but not the objects they refer to" do hash = {'key' => 'value'} clone = hash.dup clone.should == hash clone.object_id.should_not == hash.object_id end end
Version data entries
23 entries across 23 versions & 1 rubygems