Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[chore] reset i18n config after test run

Eric Schubertd3f6955b7ff1
diff --git a/spec/contracts/custom_fields/hierarchy/insert_item_contract_spec.rb b/spec/contracts/custom_fields/hierarchy/insert_item_contract_spec.rb
index a28a7ddb14f..36050663dd7 100644
--- a/spec/contracts/custom_fields/hierarchy/insert_item_contract_spec.rb
+++ b/spec/contracts/custom_fields/hierarchy/insert_item_contract_spec.rb
@@ -83,6 +83,10 @@ RSpec.describe CustomFields::Hierarchy::InsertItemContract do
)
end
+ after do
+ I18n.config.enforce_available_locales = true
+ end
+
it "is invalid with localized validation errors" do
I18n.with_locale(:mo) do
result = subject.call(params)