summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-12 16:01:49 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-12 17:24:43 +0900
commit81720b947ac1ee8ed5dba551d38014810f9c129b (patch)
treee43576cbe3124e4b5bf982ac8eb03b087f7425f2
parentcdcfe1082c54830de810c22095635a31405c043b (diff)
downloadruby-81720b947ac1ee8ed5dba551d38014810f9c129b.tar.gz
Use assert_raise instead of assert_raises
-rw-r--r--test/rdoc/test_rdoc_rubygems_hook.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rdoc/test_rdoc_rubygems_hook.rb b/test/rdoc/test_rdoc_rubygems_hook.rb
index 7d59577d97..ab7d95cac2 100644
--- a/test/rdoc/test_rdoc_rubygems_hook.rb
+++ b/test/rdoc/test_rdoc_rubygems_hook.rb
@@ -211,7 +211,7 @@ class TestRDocRubygemsHook < Gem::TestCase
FileUtils.mkdir_p @a.base_dir
FileUtils.chmod 0, @a.base_dir
- e = assert_raises Gem::FilePermissionError do
+ e = assert_raise Gem::FilePermissionError do
@hook.remove
end
@@ -241,7 +241,7 @@ class TestRDocRubygemsHook < Gem::TestCase
FileUtils.mkdir_p @a.doc_dir
FileUtils.chmod 0, @a.doc_dir
- e = assert_raises Gem::FilePermissionError do
+ e = assert_raise Gem::FilePermissionError do
@hook.setup
end