tests
This commit is contained in:
parent
cf11b0c901
commit
309b3414d6
1 changed files with 9 additions and 0 deletions
|
@ -385,6 +385,15 @@ describe NewAdministrateur::GroupeInstructeursController, type: :controller do
|
||||||
it { expect(flash.alert).to be_present }
|
it { expect(flash.alert).to be_present }
|
||||||
it { expect(flash.alert).to eq("Importation impossible : veuillez importer un fichier CSV") }
|
it { expect(flash.alert).to eq("Importation impossible : veuillez importer un fichier CSV") }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context 'when the headers are wrong' do
|
||||||
|
let(:csv_file) { fixture_file_upload('spec/fixtures/files/invalid-group-file.csv', 'text/csv') }
|
||||||
|
|
||||||
|
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>") }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#update_routing_criteria_name' do
|
describe '#update_routing_criteria_name' do
|
||||||
|
|
Loading…
Reference in a new issue