Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.44 kB
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
ruby_version_is "1.9" do
describe "Kernel#initialize_clone" do
it "calls #initialize_copy" do
ScratchPad.clear
obj = KernelSpecs::Duplicate.new(1, :a)
other = KernelSpecs::Duplicate.new(2, :b)
obj.initialize_clone(other)
ScratchPad.recorded.should == obj.object_id
end
end
end
Jump to Line
Something went wrong with that request. Please try again.