1
0
Fork 0
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:
kazu 2018-08-13 13:27:49 +00:00
parent ee05c56752
commit 984ba3da62

View file

@ -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