ruby-changes:53541
From: k0kubun <ko1@a...>
Date: Fri, 16 Nov 2018 13:22:03 +0900 (JST)
Subject: [ruby-changes:53541] k0kubun:r65757 (trunk): Test for undef'ed method in class hierachy
k0kubun 2018-11-16 13:21:57 +0900 (Fri, 16 Nov 2018) New Revision: 65757 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65757 Log: Test for undef'ed method in class hierachy This probably should have been `#bar` on the instance of class `Undef2` all along [Fix GH-2015] From: Alex Snaps <alex.snaps@g...> Modified files: trunk/test/ruby/test_undef.rb Index: test/ruby/test_undef.rb =================================================================== --- test/ruby/test_undef.rb (revision 65756) +++ test/ruby/test_undef.rb (revision 65757) @@ -25,7 +25,7 @@ class TestUndef < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_undef.rb#L25 y = Undef1.new assert_equal "bar", y.bar z = Undef2.new - assert_raise(NoMethodError) { z.foo } + assert_raise(NoMethodError) { z.bar } end def test_special_const_undef -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/