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)