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:
parent
67d87b192b
commit
0381ec5164
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue