File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -213,4 +213,11 @@ def verbose_capture_output
213
213
end
214
214
end
215
215
end
216
+
217
+ # TODO remove after 2.4 EOL
218
+ def omit_on_ruby24_on_windows
219
+ if RUBY_VERSION < "2.5" and RUBY_PLATFORM . downcase =~ /mswin|msys|mingw|cygwin|bccwin|wince|emc/
220
+ omit "Path processing in 2.4 has some bugs."
221
+ end
222
+ end
216
223
end
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ class << coder; alias add []=; end
90
90
end
91
91
92
92
def test_encode_with_trim_paths
93
+ omit_on_ruby24_on_windows # TODO remove after 2.4 EOL
93
94
subdir = nil
94
95
coder = { }
95
96
class << coder ; alias add []=; end
@@ -484,6 +485,7 @@ def test_parse_markup
484
485
end
485
486
486
487
def test_parse_page_dir
488
+ omit_on_ruby24_on_windows # TODO remove after 2.4 EOL
487
489
assert_nil @options . page_dir
488
490
489
491
out , err = capture_output do
@@ -627,6 +629,7 @@ def test_parse_visibility
627
629
end
628
630
629
631
def test_parse_write_options
632
+ omit_on_ruby24_on_windows # TODO remove after 2.4 EOL
630
633
tmpdir = File . join Dir . tmpdir , "test_rdoc_options_#{ $$} "
631
634
FileUtils . mkdir_p tmpdir
632
635
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ def test_normalized_file_list_non_file_directory
182
182
end
183
183
184
184
def test_normalized_file_list_with_dot_doc
185
+ omit_on_ruby24_on_windows # TODO remove after 2.4 EOL
185
186
expected_files = [ ]
186
187
files = temp_dir do |dir |
187
188
a = File . expand_path ( 'a.rb' )
@@ -209,6 +210,7 @@ def test_normalized_file_list_with_dot_doc
209
210
end
210
211
211
212
def test_normalized_file_list_with_dot_doc_overridden_by_exclude_option
213
+ omit_on_ruby24_on_windows # TODO remove after 2.4 EOL
212
214
expected_files = [ ]
213
215
files = temp_dir do |dir |
214
216
a = File . expand_path ( 'a.rb' )
You can’t perform that action at this time.
0 commit comments