diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-13 13:27:49 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-13 13:27:49 +0000 |
commit | 984ba3da627ffdec9e84503960fe34ad5857077e (patch) | |
tree | 73782007d04ba897fa21fe68fc362502b78d8de4 /test/-ext- | |
parent | ee05c56752b01695fe7b5c4bebe80c3e6fd4f354 (diff) | |
download | ruby-984ba3da627ffdec9e84503960fe34ad5857077e.tar.gz |
Add test for method_defined?(notimplement)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-')
-rw-r--r-- | test/-ext-/test_notimplement.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/-ext-/test_notimplement.rb b/test/-ext-/test_notimplement.rb index 80757313ca..ca09234211 100644 --- a/test/-ext-/test_notimplement.rb +++ b/test/-ext-/test_notimplement.rb @@ -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 |