[Fix #137] Change the dossier link placeholder

Otherwise we don’t know what to enter (words,
numbers…)
This commit is contained in:
gregoirenovel 2017-04-17 17:15:44 +02:00
parent 619371ef1f
commit 8deef8e8e3
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
.dossier-link
%input.form-control{ name: "champs['#{ champ.id }']",
placeholder: champ.libelle,
placeholder: "Numéro de dossier",
id: "champs_#{ champ.id }",
value: champ.value,
type: 'number',

View file

@ -11,7 +11,7 @@ describe 'users/description/champs/dossier_link.html.haml', type: :view 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}]")
expect(rendered).to have_css("input[type=number][placeholder='Numéro de dossier']")
end
end