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