зеркало из https://github.com/github/ruby.git
Gem::TestCase is based on Minitest
This commit is contained in:
Родитель
daf5ce3ba1
Коммит
bad937b00b
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче