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.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_delegate.rb b/test/test_delegate.rb
index bbabf58968c..6998ac748d1 100644
--- a/test/test_delegate.rb
+++ b/test/test_delegate.rb
@@ -74,6 +74,7 @@ class TestDelegateClass < Test::Unit::TestCase
def initialize
@var = 1
+ super(0)
end
end
@@ -90,6 +91,7 @@ class TestDelegateClass < Test::Unit::TestCase
a = [42, :hello].freeze
d = SimpleDelegator.new(a)
assert_nothing_raised(bug2679) {d.dup[0] += 1}
+ assert_raise(RuntimeError) {d.clone[0] += 1}
end
def test_frozen