File tree Expand file tree Collapse file tree 9 files changed +19
-21
lines changed Expand file tree Collapse file tree 9 files changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,4 @@ def verbose_capture_output
201
201
end
202
202
end
203
203
end
204
-
205
- alias skip omit
206
204
end
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ def test_generate_gzipped
168
168
begin
169
169
require 'zlib'
170
170
rescue LoadError
171
- skip "no zlib"
171
+ omit "no zlib"
172
172
end
173
173
@g . generate
174
174
@g . generate_gzipped
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def test_load_existent_po
32
32
begin
33
33
require 'gettext/po_parser'
34
34
rescue LoadError
35
- skip 'gettext gem is not found'
35
+ omit 'gettext gem is not found'
36
36
end
37
37
38
38
fr_locale_dir = File . join @locale_dir , 'fr'
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ def teardown
17
17
end
18
18
19
19
def test_check_files
20
- skip "assumes UNIX permission model" if /mswin|mingw/ =~ RUBY_PLATFORM
21
- skip "assumes that euid is not root" if Process . euid == 0
20
+ omit "assumes UNIX permission model" if /mswin|mingw/ =~ RUBY_PLATFORM
21
+ omit "assumes that euid is not root" if Process . euid == 0
22
22
23
23
out , err = capture_output do
24
24
temp_dir do
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def test_class_for_executable
104
104
end
105
105
106
106
def test_class_for_forbidden
107
- skip 'chmod not supported' if Gem . win_platform?
107
+ omit 'chmod not supported' if Gem . win_platform?
108
108
109
109
tf = Tempfile . open 'forbidden' do |io |
110
110
begin
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ def test_normalized_file_list_not_modified
163
163
164
164
def test_normalized_file_list_non_file_directory
165
165
dev = File ::NULL
166
- skip "#{ dev } is not a character special" unless
166
+ omit "#{ dev } is not a character special" unless
167
167
File . chardev? dev
168
168
169
169
files = nil
@@ -349,8 +349,8 @@ def test_parse_file_encoding
349
349
end
350
350
351
351
def test_parse_file_forbidden
352
- skip 'chmod not supported' if Gem . win_platform?
353
- skip "assumes that euid is not root" if Process . euid == 0
352
+ omit 'chmod not supported' if Gem . win_platform?
353
+ omit "assumes that euid is not root" if Process . euid == 0
354
354
355
355
@rdoc . store = RDoc ::Store . new
356
356
Original file line number Diff line number Diff line change @@ -1029,7 +1029,7 @@ def test_find_store
1029
1029
end
1030
1030
1031
1031
def test_did_you_mean
1032
- skip 'skip test with did_you_men' unless defined? DidYouMean ::SpellChecker
1032
+ omit 'omit test with did_you_men' unless defined? DidYouMean ::SpellChecker
1033
1033
1034
1034
util_ancestors_store
1035
1035
@@ -1227,7 +1227,7 @@ def _test_page # this test doesn't do anything anymore :(
1227
1227
1228
1228
with_dummy_pager do
1229
1229
@driver . page do |io |
1230
- skip "couldn't find a standard pager" if io == $stdout
1230
+ omit "couldn't find a standard pager" if io == $stdout
1231
1231
1232
1232
assert @driver . paging?
1233
1233
end
@@ -1239,7 +1239,7 @@ def _test_page # this test doesn't do anything anymore :(
1239
1239
# this test is too fragile. Perhaps using Process.spawn will make this
1240
1240
# reliable
1241
1241
def _test_page_in_presence_of_child_status
1242
- skip 'this test hangs on travis-ci.org' if ENV [ 'CI' ]
1242
+ omit 'this test hangs on travis-ci.org' if ENV [ 'CI' ]
1243
1243
@driver . use_stdout = false
1244
1244
1245
1245
with_dummy_pager do
@@ -1407,7 +1407,7 @@ def _test_setup_pager # this test doesn't do anything anymore :(
1407
1407
1408
1408
pager = with_dummy_pager do @driver . setup_pager end
1409
1409
1410
- skip "couldn't find a standard pager" unless pager
1410
+ omit "couldn't find a standard pager" unless pager
1411
1411
1412
1412
assert @driver . paging?
1413
1413
ensure
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def setup
22
22
begin
23
23
RDoc ::RubygemsHook . load_rdoc
24
24
rescue Gem ::DocumentError => e
25
- skip e . message
25
+ omit e . message
26
26
end
27
27
28
28
Gem . configuration [ :rdoc ] = nil
@@ -200,8 +200,8 @@ def test_remove
200
200
end
201
201
202
202
def test_remove_unwritable
203
- skip 'chmod not supported' if Gem . win_platform?
204
- skip "assumes that euid is not root" if Process . euid == 0
203
+ omit 'chmod not supported' if Gem . win_platform?
204
+ omit "assumes that euid is not root" if Process . euid == 0
205
205
206
206
FileUtils . mkdir_p @a . base_dir
207
207
FileUtils . chmod 0 , @a . base_dir
@@ -230,8 +230,8 @@ def test_setup
230
230
end
231
231
232
232
def test_setup_unwritable
233
- skip 'chmod not supported' if Gem . win_platform?
234
- skip "assumes that euid is not root" if Process . euid == 0
233
+ omit 'chmod not supported' if Gem . win_platform?
234
+ omit "assumes that euid is not root" if Process . euid == 0
235
235
236
236
FileUtils . mkdir_p @a . doc_dir
237
237
FileUtils . chmod 0 , @a . doc_dir
Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ def test_generator_for
294
294
end
295
295
296
296
def test_if_modified_since
297
- skip 'File.utime on directory not supported' if Gem . win_platform?
297
+ omit 'File.utime on directory not supported' if Gem . win_platform?
298
298
299
299
temp_dir do
300
300
now = Time . now
@@ -307,7 +307,7 @@ def test_if_modified_since
307
307
end
308
308
309
309
def test_if_modified_since_not_modified
310
- skip 'File.utime on directory not supported' if Gem . win_platform?
310
+ omit 'File.utime on directory not supported' if Gem . win_platform?
311
311
312
312
temp_dir do
313
313
now = Time . now
You can’t perform that action at this time.
0 commit comments