mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/rdoc] Prefer omit to pend
These conditions are not temporary, rather platform dependent.
https://github.com/ruby/rdoc/pull/815#discussion_r654660411
92545fa250
This commit is contained in:
parent
ec9a9af375
commit
2f3edf28f3
1 changed files with 5 additions and 5 deletions
|
@ -45,7 +45,7 @@ class TestRDocRubygemsHook < Test::Unit::TestCase
|
|||
begin
|
||||
RDoc::RubygemsHook.load_rdoc
|
||||
rescue Gem::DocumentError => e
|
||||
pend e.message
|
||||
omit e.message
|
||||
end
|
||||
@old_ui = Gem::DefaultUserInteraction.ui
|
||||
Gem::DefaultUserInteraction.ui = Gem::SilentUI.new
|
||||
|
@ -236,8 +236,8 @@ class TestRDocRubygemsHook < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_remove_unwritable
|
||||
pend 'chmod not supported' if Gem.win_platform?
|
||||
pend "assumes that euid is not root" if Process.euid == 0
|
||||
omit 'chmod not supported' if Gem.win_platform?
|
||||
omit "assumes that euid is not root" if Process.euid == 0
|
||||
|
||||
FileUtils.mkdir_p @a.base_dir
|
||||
FileUtils.chmod 0, @a.base_dir
|
||||
|
@ -266,8 +266,8 @@ class TestRDocRubygemsHook < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_setup_unwritable
|
||||
pend 'chmod not supported' if Gem.win_platform?
|
||||
pend "assumes that euid is not root" if Process.euid == 0
|
||||
omit 'chmod not supported' if Gem.win_platform?
|
||||
omit "assumes that euid is not root" if Process.euid == 0
|
||||
|
||||
FileUtils.mkdir_p @a.doc_dir
|
||||
FileUtils.chmod 0, @a.doc_dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue