blob: 6c96fc0c673e0c8f2c2cc73a45bbe9687398f255 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require_relative '../../spec_helper'
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
|