diff --git a/ChangeLog b/ChangeLog index 5e11b17c05..872efaba3d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Nov 29 18:06:45 2013 Shota Fukumori + + * test/ruby/test_case.rb (test_method_missing): Test for r43913. + Fri Nov 29 17:53:22 2013 Shota Fukumori * vm_insnhelper.c (check_match): Fix SEGV with VM_CHECKMATCH_TYPE_CASE diff --git a/test/ruby/test_case.rb b/test/ruby/test_case.rb index 0067b74e2b..f2c553e632 100644 --- a/test/ruby/test_case.rb +++ b/test/ruby/test_case.rb @@ -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