1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-06-19 06:11:29 +00:00
parent 6398515adf
commit cc144d1d5f

View file

@ -297,6 +297,7 @@ class TestMethod < Test::Unit::TestCase
end end
def test_define_singleton_method_no_proc def test_define_singleton_method_no_proc
o = Object.new
assert_raise(ArgumentError) { assert_raise(ArgumentError) {
o.instance_eval { define_singleton_method(:bar) } o.instance_eval { define_singleton_method(:bar) }
} }