Sha256: 9de88aafe0b14ea78bd4e98feded1a430462690a64f7291663f4cebc45b6b9bf
Contents?: true
Size: 330 Bytes
Versions: 83
Compression:
Stored size: 330 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' describe "Hash#clone" do it "copies instance variable but not the objects they refer to" do hash = new_hash('key' => 'value') clone = hash.clone clone.should == hash clone.object_id.should_not == hash.object_id end end
Version data entries
83 entries across 83 versions & 1 rubygems