1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/rdoc] Use pend instead of skip

8460a36d84
This commit is contained in:
Hiroshi SHIBATA 2021-06-18 14:21:20 +09:00 committed by Nobuyoshi Nakada
parent 193eea9dcd
commit 6aaa1c4d09

View file

@ -32,7 +32,7 @@ class TestRDocRubygemsHook < Test::Unit::TestCase
begin
RDoc::RubygemsHook.load_rdoc
rescue Gem::DocumentError => e
skip e.message
pend e.message
end
@old_ui = Gem::DefaultUserInteraction.ui
Gem::DefaultUserInteraction.ui = Gem::SilentUI.new
@ -220,8 +220,8 @@ class TestRDocRubygemsHook < Test::Unit::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
pend 'chmod not supported' if Gem.win_platform?
pend "assumes that euid is not root" if Process.euid == 0
FileUtils.mkdir_p @a.base_dir
FileUtils.chmod 0, @a.base_dir
@ -250,8 +250,8 @@ class TestRDocRubygemsHook < Test::Unit::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
pend 'chmod not supported' if Gem.win_platform?
pend "assumes that euid is not root" if Process.euid == 0
FileUtils.mkdir_p @a.doc_dir
FileUtils.chmod 0, @a.doc_dir