Skip to content

Commit

Permalink
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/ruby/core/time/dup_spec.rb
Original file line number Diff line number Diff line change
@@ -25,4 +25,15 @@
t.should be_an_instance_of(c)
t.dup.should be_an_instance_of(c)
end

it "returns a clone of Time instance" do
c = Time.dup
t = c.now

t.should be_an_instance_of(c)
t.should_not be_an_instance_of(Time)

t.dup.should be_an_instance_of(c)
t.dup.should_not be_an_instance_of(Time)
end
end

0 comments on commit 732d503

Please sign in to comment.