summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_method.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index 911896d0b09..5de28cbbecf 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -297,6 +297,7 @@ class TestMethod < Test::Unit::TestCase
end
def test_define_singleton_method_no_proc
+ o = Object.new
assert_raise(ArgumentError) {
o.instance_eval { define_singleton_method(:bar) }
}