vm.c: change the default error message for undefined super method.

- (old) `undefined method 'foo'`
- (new) `no superclass method 'foo'`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-04-01 08:42:30 +09:00
parent d5a4d5e393
commit bda242a135
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ assert('Kernel#method_missing', '15.3.1.3.30') do
end
end
no_super_test = NoSuperMethodTestClass.new
msg = "undefined method 'no_super_method_named_this'"
msg = "no superclass method 'no_super_method_named_this'"
assert_raise_with_message(NoMethodError, msg) do
no_super_test.no_super_method_named_this
end