summaryrefslogtreecommitdiff
path: root/test/ruby/test_method.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-19 06:11:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-19 06:11:29 +0000
commitcc144d1d5f52c91ac9e665e59cda325846183af6 (patch)
treeb8984b609b3dc1afd687825457cccc413aaaaaf6 /test/ruby/test_method.rb
parent6398515adfc86813686605019a3e22d49cd95517 (diff)
downloadruby-cc144d1d5f52c91ac9e665e59cda325846183af6.tar.gz
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
Diffstat (limited to 'test/ruby/test_method.rb')
-rw-r--r--test/ruby/test_method.rb1
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) }
}