From ffe55834d025dfe59e33e61f7edd740e16d349bf Mon Sep 17 00:00:00 2001 From: tomoya ishida Date: Sat, 3 Aug 2024 02:42:48 +0900 Subject: [PATCH] Fix flaky test: prevent regexp match to tempdir path (#1147) --- test/rdoc/test_rdoc_rdoc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rdoc/test_rdoc_rdoc.rb b/test/rdoc/test_rdoc_rdoc.rb index 5168932430..9c94988ffd 100644 --- a/test/rdoc/test_rdoc_rdoc.rb +++ b/test/rdoc/test_rdoc_rdoc.rb @@ -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