Skip to content

Commit 8460a36

Browse files
committed
Use pend instead of skip
1 parent f6cca9b commit 8460a36

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-
skip e.message
35+
pend 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-
skip 'chmod not supported' if Gem.win_platform?
224-
skip "assumes that euid is not root" if Process.euid == 0
223+
pend 'chmod not supported' if Gem.win_platform?
224+
pend "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-
skip 'chmod not supported' if Gem.win_platform?
254-
skip "assumes that euid is not root" if Process.euid == 0
253+
pend 'chmod not supported' if Gem.win_platform?
254+
pend "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)