[#835] Enable html5 validation of multiple mails
This commit is contained in:
parent
c7358a8f53
commit
8cf235f2fd
4 changed files with 10 additions and 5 deletions
|
@ -105,7 +105,7 @@ describe NewGestionnaire::AvisController, type: :controller do
|
|||
let(:created_avis) { Avis.last }
|
||||
|
||||
before do
|
||||
post :create_avis, params: { id: previous_avis.id, avis: { emails: email, introduction: intro, confidentiel: asked_confidentiel } }
|
||||
post :create_avis, params: { id: previous_avis.id, avis: { emails: [email], introduction: intro, confidentiel: asked_confidentiel } }
|
||||
end
|
||||
|
||||
context 'when an invalid email' do
|
||||
|
|
|
@ -313,7 +313,7 @@ describe NewGestionnaire::DossiersController, type: :controller do
|
|||
post :create_avis, params: {
|
||||
procedure_id: procedure.id,
|
||||
dossier_id: dossier.id,
|
||||
avis: { emails: email, introduction: 'intro', confidentiel: true }
|
||||
avis: { emails: [email], introduction: 'intro', confidentiel: true }
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue