Actions
Defect #44709
openPDF files in tmp/test/pdf are not deleted before running tests
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
No data to display
Actions