From cc144d1d5f52c91ac9e665e59cda325846183af6 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 19 Jun 2015 06:11:29 +0000 Subject: [PATCH] test_method.rb: fix commit miss * test/ruby/test_method.rb (test_define_singleton_method_no_proc): fix missing object. [Bug #11283] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_method.rb | 1 + 1 file changed, 1 insertion(+) 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) } }