Actions
Defect #44751
openRedmine::Configuration.with: Restore the settings if the block raises
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Resolution:
Affected version:
Description
Redmine::Configuration.with temporarily overrides configuration settings while the block is executed. Currently it is mainly used in tests. However, if the block raises an exception, the overridden settings are not restored.
When an assertion fails in the block, the overridden settings remain for the subsequent tests, and unrelated tests may also fail. This patch fixes it.
Files
No data to display
Actions