diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-24 17:44:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-24 17:44:39 +0000 |
commit | 3454e2b989d541a1b6dfa0e5f6432cce17cc16d7 (patch) | |
tree | b57bc2afea00aa87978f691526dd7adc1b8a067d /test/ruby/test_beginendblock.rb | |
parent | 67f7cf01b9a126710761dd1f7e3c7a96e74ce621 (diff) | |
download | ruby-3454e2b989d541a1b6dfa0e5f6432cce17cc16d7.tar.gz ruby-3454e2b989d541a1b6dfa0e5f6432cce17cc16d7.tar.xz ruby-3454e2b989d541a1b6dfa0e5f6432cce17cc16d7.zip |
* test: assert_raises has been deprecated since a long time ago.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_beginendblock.rb')
-rw-r--r-- | test/ruby/test_beginendblock.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb index 594596698..463ebd94b 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 |