1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test: assert_raises has been deprecated since a long time ago.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-09-24 17:44:39 +00:00
parent 48fdf59dcf
commit 00b4a3f9c4
59 changed files with 284 additions and 284 deletions

View file

@ -24,7 +24,7 @@ class TestException < Test::Unit::TestCase
# exception in rescue clause
$string = "this must be handled no.3"
e = assert_raises(RuntimeError) do
e = assert_raise(RuntimeError) do
begin
raise "exception in rescue clause"
rescue
@ -36,7 +36,7 @@ class TestException < Test::Unit::TestCase
# exception in ensure clause
$string = "exception in ensure clause"
e = assert_raises(RuntimeError) do
e = assert_raise(RuntimeError) do
begin
raise "this must be handled no.4"
ensure