summaryrefslogtreecommitdiff
path: root/test/ruby/test_undef.rb
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-16 04:21:57 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-16 04:21:57 +0000
commitb90bac322b133d7e03eb0a2d9f4fe55b2a4fafa0 (patch)
tree4616171a6e23f18b58bb3bbc6f100ba5b06d5192 /test/ruby/test_undef.rb
parenta9723e96f5032524d701795fcf93a0ef64e73583 (diff)
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@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_undef.rb')
-rw-r--r--test/ruby/test_undef.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_undef.rb b/test/ruby/test_undef.rb
index 6d513a238f..e0add7c3ab 100644
--- a/test/ruby/test_undef.rb
+++ b/test/ruby/test_undef.rb
@@ -25,7 +25,7 @@ class TestUndef < Test::Unit::TestCase
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