diff options
Diffstat (limited to 'test/ruby/test_method.rb')
-rw-r--r-- | test/ruby/test_method.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 911896d0b0..5de28cbbec 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -297,6 +297,7 @@ class TestMethod < Test::Unit::TestCase end def test_define_singleton_method_no_proc + o = Object.new assert_raise(ArgumentError) { o.instance_eval { define_singleton_method(:bar) } } |