aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc/test_rdoc_rubygems_hook.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-11 12:50:54 +0900
committeraycabta <aycabta@gmail.com>2019-08-16 06:07:11 +0900
commitdaf5ce3ba1545e295ba2efd0ee153638ae446e6e (patch)
tree794774d3f0616f85cd24537d98dc17ebde70027b /test/rdoc/test_rdoc_rubygems_hook.rb
parente87e10e5e7b7bbb6f4e703981a75b9aaae588816 (diff)
downloadruby-daf5ce3ba1545e295ba2efd0ee153638ae446e6e.tar.gz
Use omit instead of skip for test-unit.
Diffstat (limited to 'test/rdoc/test_rdoc_rubygems_hook.rb')
-rw-r--r--test/rdoc/test_rdoc_rubygems_hook.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/rdoc/test_rdoc_rubygems_hook.rb b/test/rdoc/test_rdoc_rubygems_hook.rb
index 7d59577d97..97b0bd999a 100644
--- a/test/rdoc/test_rdoc_rubygems_hook.rb
+++ b/test/rdoc/test_rdoc_rubygems_hook.rb
@@ -22,7 +22,7 @@ class TestRDocRubygemsHook < Gem::TestCase
begin
RDoc::RubygemsHook.load_rdoc
rescue Gem::DocumentError => e
- skip e.message
+ omit e.message
end
Gem.configuration[:rdoc] = nil
@@ -205,8 +205,8 @@ class TestRDocRubygemsHook < Gem::TestCase
end
def test_remove_unwritable
- skip 'chmod not supported' if Gem.win_platform?
- skip "assumes that euid is not root" if Process.euid == 0
+ omit 'chmod not supported' if Gem.win_platform?
+ omit "assumes that euid is not root" if Process.euid == 0
FileUtils.mkdir_p @a.base_dir
FileUtils.chmod 0, @a.base_dir
@@ -235,8 +235,8 @@ class TestRDocRubygemsHook < Gem::TestCase
end
def test_setup_unwritable
- skip 'chmod not supported' if Gem.win_platform?
- skip "assumes that euid is not root" if Process.euid == 0
+ omit 'chmod not supported' if Gem.win_platform?
+ omit "assumes that euid is not root" if Process.euid == 0
FileUtils.mkdir_p @a.doc_dir
FileUtils.chmod 0, @a.doc_dir