Skip to content

Commit

Permalink
Fix flaky test: prevent regexp match to tempdir path (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Aug 2, 2024
1 parent 9d36593 commit ffe5583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rdoc/test_rdoc_rdoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_normalized_file_list_with_dot_doc_overridden_by_exclude_option
File.write('.document', "a.rb\n""b.rb\n")
expected_files << a

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

Expand Down

0 comments on commit ffe5583

Please sign in to comment.