require File.expand_path('../../../spec_helper', __FILE__)

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

