Skip to content

Commit ffe5583

Browse files
authored
Fix flaky test: prevent regexp match to tempdir path (#1147)
1 parent 9d36593 commit ffe5583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/rdoc/test_rdoc_rdoc.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def test_normalized_file_list_with_dot_doc_overridden_by_exclude_option
194194
File.write('.document', "a.rb\n""b.rb\n")
195195
expected_files << a
196196

197-
@rdoc.options.exclude = Regexp.new(['b.rb'].join('|'))
197+
@rdoc.options.exclude = /b\.rb$/
198198
@rdoc.normalized_file_list [File.realpath(dir)]
199199
end
200200

0 commit comments

Comments
 (0)