chore(rubocop): fix Rails/I18nLocaleAssignment

This commit is contained in:
Colin Darie 2023-04-19 11:39:58 +02:00
parent 20f0b64736
commit 516ffc68ba
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -225,10 +225,12 @@ describe DossierProjectionService do
let(:procedure) { create(:procedure, types_de_champ_public: [{ type: :pays }]) }
let(:dossier) { create(:dossier, procedure: procedure) }
let(:column) { dossier.procedure.active_revision.types_de_champ_public.first.stable_id.to_s }
let!(:previous_locale) { I18n.locale }
before { I18n.locale = :fr }
after { I18n.locale = previous_locale }
around do |example|
I18n.with_locale(:fr) do
example.run
end
end
context 'when external id is set' do
before do