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

Gem::TestCase is based on Minitest

This commit is contained in:
Hiroshi SHIBATA 2019-08-11 12:53:49 +09:00 committed by aycabta
parent daf5ce3ba1
commit bad937b00b

View file

@ -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