Add a missing a test for the dossier link field in the form

This commit is contained in:
gregoirenovel 2017-04-26 11:24:37 +02:00
parent 2b23d0d087
commit b89e59192c

View file

@ -7,6 +7,14 @@ describe 'users/description/champs/dossier_link.html.haml', type: :view do
render 'users/description/champs/dossier_link.html.haml', champ: champ
end
context 'in all cases' do
let!(:champ) { create(:champ, type_de_champ: type_champ, value: nil) }
it 'should render an input for the dossier link' do
expect(rendered).to have_css("input[type=number][placeholder=#{champ.libelle}]")
end
end
context 'When no dossier is provided' do
let!(:champ) { create(:champ, type_de_champ: type_champ, value: nil) }