Fix procedures with multiple dossier link champs
This commit is contained in:
parent
f0610c493c
commit
c0344fc30e
4 changed files with 10 additions and 4 deletions
|
@ -28,10 +28,11 @@ describe Champs::DossierLinkController, type: :controller do
|
|||
get :show, params: params, format: 'js'
|
||||
}
|
||||
|
||||
it 'returns the procedure name' do
|
||||
it 'renders the procedure name' do
|
||||
expect(response.body).to include('Dossier en brouillon')
|
||||
expect(response.body).to include(procedure.libelle)
|
||||
expect(response.body).to include(procedure.organisation)
|
||||
expect(response.body).to include('.dossier-link-1 .help-block')
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -41,7 +42,10 @@ describe Champs::DossierLinkController, type: :controller do
|
|||
get :show, params: params, format: 'js'
|
||||
}
|
||||
|
||||
it { expect(response.body).to include('Ce dossier est inconnu') }
|
||||
it 'renders error message' do
|
||||
expect(response.body).to include('Ce dossier est inconnu')
|
||||
expect(response.body).to include('.dossier-link-1 .help-block')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue