diff options
Diffstat (limited to 'test/-ext-/test_notimplement.rb')
-rw-r--r-- | test/-ext-/test_notimplement.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/-ext-/test_notimplement.rb b/test/-ext-/test_notimplement.rb index 73a9077b9c..882c905faf 100644 --- a/test/-ext-/test_notimplement.rb +++ b/test/-ext-/test_notimplement.rb @@ -15,5 +15,19 @@ class Test_NotImplement < Test::Unit::TestCase def test_not_method_defined assert !Bug::NotImplement.method_defined?(:notimplement) + assert !Bug::NotImplement.method_defined?(:notimplement, true) + assert !Bug::NotImplement.method_defined?(:notimplement, false) + end + + def test_not_private_method_defined + assert !Bug::NotImplement.private_method_defined?(:notimplement) + assert !Bug::NotImplement.private_method_defined?(:notimplement, true) + assert !Bug::NotImplement.private_method_defined?(:notimplement, false) + end + + def test_not_protected_method_defined + assert !Bug::NotImplement.protected_method_defined?(:notimplement) + assert !Bug::NotImplement.protected_method_defined?(:notimplement, true) + assert !Bug::NotImplement.protected_method_defined?(:notimplement, false) end end |