summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_thread.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 17:44:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 17:44:39 +0000
commit3454e2b989d541a1b6dfa0e5f6432cce17cc16d7 (patch)
treeb57bc2afea00aa87978f691526dd7adc1b8a067d /test/ruby/test_thread.rb
parent67f7cf01b9a126710761dd1f7e3c7a96e74ce621 (diff)
downloadruby-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_thread.rb')
-rw-r--r--test/ruby/test_thread.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index 4332b0fe2..97e58cd9e 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