Skip to content

Commit 92545fa

Browse files
committed
Prefer omit to pend
These conditions are not temporary, rather platform dependent. #815 (comment)
1 parent 59e4cc0 commit 92545fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/rdoc/test_rdoc_rubygems_hook.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def setup
3232
begin
3333
RDoc::RubygemsHook.load_rdoc
3434
rescue Gem::DocumentError => e
35-
pend e.message
35+
omit e.message
3636
end
3737
@old_ui = Gem::DefaultUserInteraction.ui
3838
Gem::DefaultUserInteraction.ui = Gem::SilentUI.new
@@ -220,8 +220,8 @@ def test_remove
220220
end
221221

222222
def test_remove_unwritable
223-
pend 'chmod not supported' if Gem.win_platform?
224-
pend "assumes that euid is not root" if Process.euid == 0
223+
omit 'chmod not supported' if Gem.win_platform?
224+
omit "assumes that euid is not root" if Process.euid == 0
225225

226226
FileUtils.mkdir_p @a.base_dir
227227
FileUtils.chmod 0, @a.base_dir
@@ -250,8 +250,8 @@ def test_setup
250250
end
251251

252252
def test_setup_unwritable
253-
pend 'chmod not supported' if Gem.win_platform?
254-
pend "assumes that euid is not root" if Process.euid == 0
253+
omit 'chmod not supported' if Gem.win_platform?
254+
omit "assumes that euid is not root" if Process.euid == 0
255255

256256
FileUtils.mkdir_p @a.doc_dir
257257
FileUtils.chmod 0, @a.doc_dir

0 commit comments

Comments
 (0)