mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add test for method_defined?(notimplement)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ee05c56752
commit
984ba3da62
1 changed files with 4 additions and 0 deletions
|
@ -12,4 +12,8 @@ class Test_NotImplement < Test::Unit::TestCase
|
|||
def test_respond_to
|
||||
assert_not_respond_to(Bug, :notimplement)
|
||||
end
|
||||
|
||||
def test_not_method_defined
|
||||
assert !Bug.method_defined?(:notimplement)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue