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:
parent
6398515adf
commit
cc144d1d5f
1 changed files with 1 additions and 0 deletions
|
@ -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) }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue