From 81720b947ac1ee8ed5dba551d38014810f9c129b Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 12 May 2021 16:01:49 +0900 Subject: Use assert_raise instead of assert_raises --- test/rdoc/test_rdoc_rubygems_hook.rb | 4 ++-- 1 file 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 -- cgit v1.2.1