1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix test bug

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2018-08-13 13:50:48 +00:00
parent 67d87b192b
commit 0381ec5164
2 changed files with 3 additions and 1 deletions

View file

@ -11,6 +11,8 @@ void
Init_notimplement(void)
{
VALUE mBug = rb_define_module("Bug");
VALUE klass = rb_define_module_under(mBug, "NotImplement");
rb_define_module_function(mBug, "funcall", bug_funcall, -1);
rb_define_module_function(mBug, "notimplement", rb_f_notimplement, -1);
rb_define_method(klass, "notimplement", rb_f_notimplement, -1);
}

View file

@ -14,6 +14,6 @@ class Test_NotImplement < Test::Unit::TestCase
end
def test_not_method_defined
assert !Bug.method_defined?(:notimplement)
assert !Bug::NotImplement.method_defined?(:notimplement)
end
end