summaryrefslogtreecommitdiff
path: root/test/-ext-/test_notimplement.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/test_notimplement.rb')
-rw-r--r--test/-ext-/test_notimplement.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/-ext-/test_notimplement.rb b/test/-ext-/test_notimplement.rb
index 882c905faf..92a2fd22b8 100644
--- a/test/-ext-/test_notimplement.rb
+++ b/test/-ext-/test_notimplement.rb
@@ -7,10 +7,14 @@ class Test_NotImplement < Test::Unit::TestCase
assert_raise(NotImplementedError, bug3662) {
Bug.funcall(:notimplement)
}
+ assert_raise(NotImplementedError) {
+ Bug::NotImplement.new.notimplement
+ }
end
def test_respond_to
assert_not_respond_to(Bug, :notimplement)
+ assert_not_respond_to(Bug::NotImplement.new, :notimplement)
end
def test_not_method_defined