summaryrefslogtreecommitdiff
path: root/test/ruby/test_beginendblock.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_beginendblock.rb')
-rw-r--r--test/ruby/test_beginendblock.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb
index 594596698b..463ebd94b6 100644
--- a/test/ruby/test_beginendblock.rb
+++ b/test/ruby/test_beginendblock.rb
@@ -32,11 +32,11 @@ class TestBeginEndBlock < Test::Unit::TestCase
end
def test_begininmethod
- assert_raises(SyntaxError) do
+ assert_raise(SyntaxError) do
eval("def foo; BEGIN {}; end")
end
- assert_raises(SyntaxError) do
+ assert_raise(SyntaxError) do
eval('eval("def foo; BEGIN {}; end")')
end
end