Defect #44438
closed
DateCalculationTest is not run by `rails test`
Added by Kenta Kumojima 21 days ago.
Updated 19 days ago.
Category:
Code cleanup/refactoring
Description
DateCalculationTest is not executed by `rails test` because its file name does not match the test file loading pattern.
This patch renames the file so that it is detected and executed by `rails test`.
Files
- Tracker changed from Patch to Defect
- Status changed from New to Confirmed
- Target version set to 6.1.5
- Subject changed from DateCalculationTest is not run by rails test to DateCalculationTest is not run by `rails test`
- Status changed from Confirmed to Resolved
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the fix in r25064. Thank you for catching and reporting the issue.
After the fix, I ran bin/rails test and confirmed in log/test.log that DateCalculationTest was run:
$ grep DateCalculationTest log/test.log
I, [2026-09-10T09:51:19.591995 #32500] INFO -- : Redmine::Utils::DateCalculationTest: test_add_working_days_without_non_working_week_days
I, [2026-09-10T09:51:19.676314 #32500] INFO -- : Redmine::Utils::DateCalculationTest: test_working_days_with_non_working_week_days
I, [2026-09-10T09:51:19.711604 #32500] INFO -- : Redmine::Utils::DateCalculationTest: test_working_days_without_non_working_week_days
I, [2026-09-10T09:51:19.796717 #32500] INFO -- : Redmine::Utils::DateCalculationTest: test_add_working_days_with_non_working_week_days
- Status changed from Resolved to Closed
Merged the fix into the stable branches in r25066 and r25067.
Also available in: Atom
PDF