summaryrefslogtreecommitdiff
path: root/test/-ext-
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/-ext-
parenta28de81aec2cb6af9199891f2fba17efc6f1ebc8 (diff)
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/-ext-')
-rw-r--r--test/-ext-/tracepoint/test_tracepoint.rb2
-rw-r--r--test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/-ext-/tracepoint/test_tracepoint.rb b/test/-ext-/tracepoint/test_tracepoint.rb
index a4cb288..f7a0f6c 100644
--- a/test/-ext-/tracepoint/test_tracepoint.rb
+++ b/test/-ext-/tracepoint/test_tracepoint.rb
@@ -3,7 +3,7 @@ require '-test-/tracepoint'
class TestTracepointObj < Test::Unit::TestCase
def test_not_available_from_ruby
- assert_raises ArgumentError do
+ assert_raise ArgumentError do
TracePoint.trace(:obj_new){}
end
end
diff --git a/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb b/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
index e181068..e88dbef 100644
--- a/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
+++ b/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
@@ -27,7 +27,7 @@ class TestWaitForSingleFD < Test::Unit::TestCase
with_pipe do |r,w|
wfd = w.fileno
w.close
- assert_raises(Errno::EBADF) do
+ assert_raise(Errno::EBADF) do
IO.wait_for_single_fd(wfd, RB_WAITFD_OUT, nil)
end
end