Gem::TestCase is based on Minitest

This commit is contained in:
Hiroshi SHIBATA 2019-08-11 12:53:49 +09:00 коммит произвёл aycabta
Родитель daf5ce3ba1
Коммит bad937b00b
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -22,7 +22,7 @@ class TestRDocRubygemsHook < Gem::TestCase
begin
RDoc::RubygemsHook.load_rdoc
rescue Gem::DocumentError => e
omit e.message
skip e.message
end
Gem.configuration[:rdoc] = nil
@ -205,8 +205,8 @@ class TestRDocRubygemsHook < Gem::TestCase
end
def test_remove_unwritable
omit 'chmod not supported' if Gem.win_platform?
omit "assumes that euid is not root" if Process.euid == 0
skip 'chmod not supported' if Gem.win_platform?
skip "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
omit 'chmod not supported' if Gem.win_platform?
omit "assumes that euid is not root" if Process.euid == 0
skip 'chmod not supported' if Gem.win_platform?
skip "assumes that euid is not root" if Process.euid == 0
FileUtils.mkdir_p @a.doc_dir
FileUtils.chmod 0, @a.doc_dir