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:
parent
daf5ce3ba1
commit
bad937b00b
1 changed files with 5 additions and 5 deletions
|
@ -22,7 +22,7 @@ class TestRDocRubygemsHook < Gem::TestCase
|
||||||
begin
|
begin
|
||||||
RDoc::RubygemsHook.load_rdoc
|
RDoc::RubygemsHook.load_rdoc
|
||||||
rescue Gem::DocumentError => e
|
rescue Gem::DocumentError => e
|
||||||
omit e.message
|
skip e.message
|
||||||
end
|
end
|
||||||
|
|
||||||
Gem.configuration[:rdoc] = nil
|
Gem.configuration[:rdoc] = nil
|
||||||
|
@ -205,8 +205,8 @@ class TestRDocRubygemsHook < Gem::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_remove_unwritable
|
def test_remove_unwritable
|
||||||
omit 'chmod not supported' if Gem.win_platform?
|
skip 'chmod not supported' if Gem.win_platform?
|
||||||
omit "assumes that euid is not root" if Process.euid == 0
|
skip "assumes that euid is not root" if Process.euid == 0
|
||||||
|
|
||||||
FileUtils.mkdir_p @a.base_dir
|
FileUtils.mkdir_p @a.base_dir
|
||||||
FileUtils.chmod 0, @a.base_dir
|
FileUtils.chmod 0, @a.base_dir
|
||||||
|
@ -235,8 +235,8 @@ class TestRDocRubygemsHook < Gem::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_setup_unwritable
|
def test_setup_unwritable
|
||||||
omit 'chmod not supported' if Gem.win_platform?
|
skip 'chmod not supported' if Gem.win_platform?
|
||||||
omit "assumes that euid is not root" if Process.euid == 0
|
skip "assumes that euid is not root" if Process.euid == 0
|
||||||
|
|
||||||
FileUtils.mkdir_p @a.doc_dir
|
FileUtils.mkdir_p @a.doc_dir
|
||||||
FileUtils.chmod 0, @a.doc_dir
|
FileUtils.chmod 0, @a.doc_dir
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue