Skip to content

Commit 83ce43e

Browse files
committed
Use omit instead of skip for test-unit
1 parent 88bbdd7 commit 83ce43e

8 files changed

Lines changed: 16 additions & 16 deletions

test/test_rake_application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def test_load_rakefile_doesnt_print_rakefile_directory_from_subdir_if_silent
308308
end
309309

310310
def test_load_rakefile_not_found
311-
skip if jruby9?
311+
omit if jruby9?
312312

313313
Dir.chdir @tempdir
314314
ENV["RAKE_SYSTEM"] = "not_exist"

test/test_rake_application_options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def test_require
200200
end
201201

202202
def test_missing_require
203-
skip if jruby?
203+
omit if jruby?
204204

205205
ex = assert_raises(LoadError) do
206206
flags(["--require", "test/missing"]) do |opts|

test/test_rake_backtrace.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class TestRakeBacktrace < Rake::TestCase # :nodoc:
4040
def setup
4141
super
4242

43-
skip "tmpdir is suppressed in backtrace" if
43+
omit "tmpdir is suppressed in backtrace" if
4444
Rake::Backtrace::SUPPRESS_PATTERN =~ Dir.pwd
4545
end
4646

test/test_rake_clean.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def create_undeletable_file
119119
rescue
120120
file_name
121121
else
122-
skip "Permission to delete files is different on this system"
122+
omit "Permission to delete files is different on this system"
123123
end
124124
end
125125

test/test_rake_cpu_counter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def setup
1111

1212
def test_count
1313
num = @cpu_counter.count
14-
skip "cannot count CPU" if num == nil
14+
omit "cannot count CPU" if num == nil
1515
assert_kind_of Numeric, num
1616
assert_operator num, :>=, 1
1717
end

test/test_rake_file_utils.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def test_sh_with_env
171171
end
172172

173173
def test_sh_with_multiple_arguments
174-
skip if jruby9? # https://github.com/jruby/jruby/issues/3653
174+
omit if jruby9? # https://github.com/jruby/jruby/issues/3653
175175

176176
check_no_expansion
177177
ENV["RAKE_TEST_SH"] = "someval"
@@ -182,7 +182,7 @@ def test_sh_with_multiple_arguments
182182
end
183183

184184
def test_sh_with_spawn_options
185-
skip "JRuby does not support spawn options" if jruby?
185+
omit "JRuby does not support spawn options" if jruby?
186186

187187
echocommand
188188

@@ -198,7 +198,7 @@ def test_sh_with_spawn_options
198198
end
199199

200200
def test_sh_with_hash_option
201-
skip "JRuby does not support spawn options" if jruby?
201+
omit "JRuby does not support spawn options" if jruby?
202202
check_expansion
203203

204204
verbose(false) {
@@ -243,7 +243,7 @@ def test_sh_noop
243243
def test_sh_bad_option
244244
# Skip on JRuby because option checking is performed by spawn via system
245245
# now.
246-
skip "JRuby does not support spawn options" if jruby?
246+
omit "JRuby does not support spawn options" if jruby?
247247

248248
shellcommand
249249

@@ -395,7 +395,7 @@ def assert_echoes_fully
395395
end
396396

397397
def test_ruby_with_multiple_arguments
398-
skip if jruby9? # https://github.com/jruby/jruby/issues/3653
398+
omit if jruby9? # https://github.com/jruby/jruby/issues/3653
399399

400400
check_no_expansion
401401

test/test_rake_functional.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_by_default_rakelib_files_are_included
123123
end
124124

125125
def test_implicit_system
126-
skip if jruby9?
126+
omit if jruby9?
127127

128128
rake_system_dir
129129
Dir.chdir @tempdir
@@ -470,7 +470,7 @@ def test_correct_number_of_tasks_reported
470470
end
471471

472472
def test_file_list_is_requirable_separately
473-
skip if jruby9? # https://github.com/jruby/jruby/issues/3655
473+
omit if jruby9? # https://github.com/jruby/jruby/issues/3655
474474

475475
ruby "-rrake/file_list", "-e", 'puts Rake::FileList["a"].size'
476476
assert_equal "1\n", @out
@@ -496,12 +496,12 @@ def test_signal_propagation_in_tests
496496
assert_match(/ATEST/, @out)
497497
refute_match(/BTEST/, @out)
498498
else
499-
skip "Signal detect seems broken on this system"
499+
omit "Signal detect seems broken on this system"
500500
end
501501
end
502502

503503
def test_failing_test_sets_exit_status
504-
skip if uncertain_exit_status?
504+
omit if uncertain_exit_status?
505505
rakefile_failing_test_task
506506
rake
507507
assert @exit.exitstatus > 0, "should be non-zero"
@@ -520,7 +520,7 @@ def test_stand_alone_filelist
520520

521521
# We are unable to accurately verify that Rake returns a proper
522522
# error exit status using popen3 in Ruby 1.8.7 and JRuby. This
523-
# predicate function can be used to skip tests or assertions as
523+
# predicate function can be used to omit tests or assertions as
524524
# needed.
525525
def uncertain_exit_status?
526526
defined?(JRUBY_VERSION)

test/test_rake_task_with_arguments.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_actions_of_various_arity_are_ok_with_args
8383

8484
def test_actions_adore_keywords
8585
# https://github.com/ruby/rake/pull/174#issuecomment-263460761
86-
skip if jruby9?
86+
omit if jruby9?
8787
eval <<-RUBY, binding, __FILE__, __LINE__+1
8888
notes = []
8989
t = task :t, [:reqr, :ovrd, :dflt] # required, overridden-optional, default-optional

0 commit comments

Comments
 (0)