summaryrefslogtreecommitdiff
path: root/test/test_delegate.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_delegate.rb')
-rw-r--r--test/test_delegate.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_delegate.rb b/test/test_delegate.rb
index 6998ac748d..dc12aa35f9 100644
--- a/test/test_delegate.rb
+++ b/test/test_delegate.rb
@@ -92,6 +92,9 @@ class TestDelegateClass < Test::Unit::TestCase
d = SimpleDelegator.new(a)
assert_nothing_raised(bug2679) {d.dup[0] += 1}
assert_raise(RuntimeError) {d.clone[0] += 1}
+ d.freeze
+ assert(d.clone.frozen?)
+ assert(!d.dup.frozen?)
end
def test_frozen