Merge pull request #141 from sgmap/fix-137
[Fix #137] Change the dossier link placeholder
This commit is contained in:
commit
cdea12b43f
2 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue