chore(rubocop): fix Rails/I18nLocaleAssignment
This commit is contained in:
parent
20f0b64736
commit
516ffc68ba
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue