Actions
Defect #44709
closedPDF files in tmp/test/pdf are not deleted before running tests
Defect #44709:
PDF files in tmp/test/pdf are not deleted before running tests
Resolution:
Fixed
Affected version:
Description
test/test_helper.rb attempts to delete the PDF files in tmp/test/pdf before running tests:
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
Actions