app: localize CSV import for groupe instructeurs

This commit is contained in:
Peng-Fei DONG 2021-10-05 08:57:09 +00:00 committed by Pierre de La Morinerie
parent 9ec5a22521
commit dee536fca1
5 changed files with 8 additions and 3 deletions

View file

@ -418,7 +418,7 @@ describe NewAdministrateur::GroupeInstructeursController, type: :controller do
before { subject }
it { expect(flash.alert).to be_present }
it { expect(flash.alert).to eq("Importation impossible, veuillez importer un csv <a href=\"/import-groupe-test.csv\">suivant ce modèle</a>") }
it { expect(flash.alert).to eq("Importation impossible, veuillez importer un csv <a href=\"/csv/#{I18n.locale}/import-groupe-test.csv\">suivant ce modèle</a>") }
end
end