diff options
Diffstat (limited to 'spec/rubyspec/core/time/dup_spec.rb')
-rw-r--r-- | spec/rubyspec/core/time/dup_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/rubyspec/core/time/dup_spec.rb b/spec/rubyspec/core/time/dup_spec.rb index 16aab04200..b32ce96d44 100644 --- a/spec/rubyspec/core/time/dup_spec.rb +++ b/spec/rubyspec/core/time/dup_spec.rb @@ -36,4 +36,11 @@ describe "Time#dup" do t.dup.should be_an_instance_of(c) t.dup.should_not be_an_instance_of(Time) end + + it "does not copy frozen status from the original" do + t = Time.now + t.freeze + t2 = t.dup + t2.frozen?.should be_false + end end |