aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_thread.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-09 08:41:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-09 08:41:13 +0000
commit289d6bb30f4c2fffa2437436030c889f10522e72 (patch)
treeb15592f8711911f5fa1be329bb20dd7ce6d4aed8 /test/ruby/test_thread.rb
parenta28de81aec2cb6af9199891f2fba17efc6f1ebc8 (diff)
downloadruby-289d6bb30f4c2fffa2437436030c889f10522e72.tar.gz
test: use assert_raise
* test/ruby, test/-ext-: use assert_raise instead of assert_raises. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_thread.rb')
-rw-r--r--test/ruby/test_thread.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index ca3ab08e63..260c654287 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -83,7 +83,7 @@ class TestThread < Test::Unit::TestCase
def test_thread_variable_frozen
t = Thread.new { }.join
t.freeze
- assert_raises(RuntimeError) do
+ assert_raise(RuntimeError) do
t.thread_variable_set(:foo, "bar")
end
end
@@ -748,13 +748,13 @@ _eom
end
def test_thread_join_current
- assert_raises(ThreadError) do
+ assert_raise(ThreadError) do
Thread.current.join
end
end
def test_thread_join_main_thread
- assert_raises(ThreadError) do
+ assert_raise(ThreadError) do
Thread.new(Thread.current) {|t|
t.join
}.join