Project

General

Profile

Actions

Defect #44751

open

Redmine::Configuration.with: Restore the settings if the block raises

Added by Nishida Yuya about 8 hours ago.

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.

CI results: Tests, Lint


Files

No data to display

Actions

Also available in: Atom PDF