blob: c9e7b1fe6516ca8cb25a14e35d7c0d7cfeced0c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require File.expand_path('../../../spec_helper', __FILE__)
describe "Hash#clone" do
it "copies instance variable but not the objects they refer to" do
hash = { 'key' => 'value' }
clone = hash.clone
clone.should == hash
clone.should_not equal hash
end
end
|