From d3f6955b7ff1e4b07ebc09c3b6364cdf48841eae Mon Sep 17 00:00:00 2001 From: Eric Schubert Date: Fri, 15 Nov 2024 10:55:39 +0100 Subject: [PATCH] [chore] reset i18n config after test run --- .../custom_fields/hierarchy/insert_item_contract_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 a28a7ddb14f3..36050663dd7a 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 @@ ) 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)