This commit is contained in:
Tanguy PATTE 2015-08-21 11:40:02 +02:00
parent 88b663a514
commit c8baf0c280

View file

@ -97,7 +97,8 @@ describe DescriptionController, type: :controller do
it 'mail_contact manquant' do
post :create, dossier_id: dossier_id, nom_projet: nom_projet, description: description, montant_projet: montant_projet, montant_aide_demande: montant_aide_demande, date_previsionnelle: date_previsionnelle, mail_contact: ''
expect(response).to redirect_to("/dossiers/#{dossier_id}/description/error")
expect(response).to render_template('show')
expect(flash[:alert]).to be_present
end
end