From 00b4a3f9c4aaf5aa038a9530ec515e1718ae1c42 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 24 Sep 2008 17:44:39 +0000 Subject: * 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 --- test/ruby/test_thread.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby/test_thread.rb') diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 4332b0fe2e..97e58cd9ea 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -71,7 +71,7 @@ class TestThread < Test::Unit::TestCase mutex = Mutex.new condvar = ConditionVariable.new - assert_raises(ThreadError) { condvar.wait(mutex) } + assert_raise(ThreadError) { condvar.wait(mutex) } end def test_condvar_wait_exception_handling @@ -98,7 +98,7 @@ class TestThread < Test::Unit::TestCase end thread.raise Interrupt, "interrupt a dead condition variable" - assert_raises(Interrupt) { thread.value } + assert_raise(Interrupt) { thread.value } assert(locked) end -- cgit v1.2.3