mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_case.rb (test_method_missing): Test for r43913.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
205399b0f4
commit
14361a72ff
2 changed files with 15 additions and 0 deletions
|
@ -103,4 +103,15 @@ class TestCase < Test::Unit::TestCase
|
|||
assert(false)
|
||||
end
|
||||
end
|
||||
|
||||
def test_method_missing
|
||||
flag = false
|
||||
|
||||
case 1
|
||||
when Class.new(BasicObject) { def method_missing(*) true end }.new
|
||||
flag = true
|
||||
end
|
||||
|
||||
assert(flag)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue