Merge pull request #141 from sgmap/fix-137

[Fix #137] Change the dossier link placeholder
This commit is contained in:
gregoirenovel 2017-04-26 11:56:22 +02:00 committed by GitHub
commit cdea12b43f
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
.dossier-link .dossier-link
%input.form-control{ name: "champs['#{ champ.id }']", %input.form-control{ name: "champs['#{ champ.id }']",
placeholder: champ.libelle, placeholder: "Numéro de dossier",
id: "champs_#{ champ.id }", id: "champs_#{ champ.id }",
value: champ.value, value: champ.value,
type: 'number', 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) } let!(:champ) { create(:champ, type_de_champ: type_champ, value: nil) }
it 'should render an input for the dossier link' do 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
end end