Skip to content

Commit

Permalink
Revert "Revert "[ruby/rdoc] Use omit of test-unit instead of skip of …
Browse files Browse the repository at this point in the history
…minitest""

This reverts commit ca5812f.

Now tool/lib/minitest provides "omit", so it should work.
  • Loading branch information
mame committed Oct 29, 2019
1 parent 1820aee commit 79a7fd9
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/rdoc/test_rdoc_generator_json_index.rb
Expand Up @@ -168,7 +168,7 @@ def test_generate_gzipped
begin
require 'zlib'
rescue LoadError
skip "no zlib"
omit "no zlib"
end
@g.generate
@g.generate_gzipped
Expand Down
2 changes: 1 addition & 1 deletion test/rdoc/test_rdoc_i18n_locale.rb
Expand Up @@ -32,7 +32,7 @@ def test_load_existent_po
begin
require 'gettext/po_parser'
rescue LoadError
skip 'gettext gem is not found'
omit 'gettext gem is not found'
end

fr_locale_dir = File.join @locale_dir, 'fr'
Expand Down
4 changes: 2 additions & 2 deletions test/rdoc/test_rdoc_options.rb
Expand Up @@ -17,8 +17,8 @@ def teardown
end

def test_check_files
skip "assumes UNIX permission model" if /mswin|mingw/ =~ RUBY_PLATFORM
skip "assumes that euid is not root" if Process.euid == 0
omit "assumes UNIX permission model" if /mswin|mingw/ =~ RUBY_PLATFORM
omit "assumes that euid is not root" if Process.euid == 0

out, err = capture_output do
temp_dir do
Expand Down
2 changes: 1 addition & 1 deletion test/rdoc/test_rdoc_parser.rb
Expand Up @@ -104,7 +104,7 @@ def test_class_for_executable
end

def test_class_for_forbidden
skip 'chmod not supported' if Gem.win_platform?
omit 'chmod not supported' if Gem.win_platform?

tf = Tempfile.open 'forbidden' do |io|
begin
Expand Down
6 changes: 3 additions & 3 deletions test/rdoc/test_rdoc_rdoc.rb
Expand Up @@ -161,7 +161,7 @@ def test_normalized_file_list_not_modified

def test_normalized_file_list_non_file_directory
dev = File::NULL
skip "#{dev} is not a character special" unless
omit "#{dev} is not a character special" unless
File.chardev? dev

files = nil
Expand Down Expand Up @@ -355,8 +355,8 @@ def test_parse_file_encoding
end

def test_parse_file_forbidden
skip 'chmod not supported' if Gem.win_platform?
skip "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

@rdoc.store = RDoc::Store.new

Expand Down
6 changes: 3 additions & 3 deletions test/rdoc/test_rdoc_ri_driver.rb
Expand Up @@ -1029,7 +1029,7 @@ def test_find_store
end

def test_did_you_mean
skip 'skip test with did_you_men' unless defined? DidYouMean::SpellChecker
omit 'skip test with did_you_men' unless defined? DidYouMean::SpellChecker

util_ancestors_store

Expand Down Expand Up @@ -1227,7 +1227,7 @@ def _test_page # this test doesn't do anything anymore :(

with_dummy_pager do
@driver.page do |io|
skip "couldn't find a standard pager" if io == $stdout
omit "couldn't find a standard pager" if io == $stdout

assert @driver.paging?
end
Expand Down Expand Up @@ -1406,7 +1406,7 @@ def _test_setup_pager # this test doesn't do anything anymore :(

pager = with_dummy_pager do @driver.setup_pager end

skip "couldn't find a standard pager" unless pager
omit "couldn't find a standard pager" unless pager

assert @driver.paging?
ensure
Expand Down
4 changes: 2 additions & 2 deletions test/rdoc/test_rdoc_servlet.rb
Expand Up @@ -294,7 +294,7 @@ def test_generator_for
end

def test_if_modified_since
skip 'File.utime on directory not supported' if Gem.win_platform?
omit 'File.utime on directory not supported' if Gem.win_platform?

temp_dir do
now = Time.now
Expand All @@ -307,7 +307,7 @@ def test_if_modified_since
end

def test_if_modified_since_not_modified
skip 'File.utime on directory not supported' if Gem.win_platform?
omit 'File.utime on directory not supported' if Gem.win_platform?

temp_dir do
now = Time.now
Expand Down

0 comments on commit 79a7fd9

Please sign in to comment.