Project

General

Profile

Actions

Defect #44709

open

PDF files in tmp/test/pdf are not deleted before running tests

Added by Go MAEDA about 23 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
Resolution:
Affected version:

Description

test/test_helper.rb attempts to delete the PDF files in tmp/test/pdf before running tests:

FileUtils.rm Dir.glob('#$redmine_tmp_pdf_directory/*.pdf')

Because the pattern is enclosed in single quotes, $redmine_tmp_pdf_directory is not interpolated, and Dir.glob always returns an empty array. As a result, the PDF files saved by the save_pdf helper are never deleted.

The attached patch fixes this by using a double-quoted string.


Files

fix-pdf-glob-quotes.patch (494 Bytes) fix-pdf-glob-quotes.patch Go MAEDA, 2026-11-03 10:14

No data to display

Actions

Also available in: Atom PDF