Use non-breaking spaces in tests

This commit is contained in:
gregoirenovel 2018-10-08 18:44:19 +02:00
parent 9de5587183
commit b3d0a113eb
4 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ describe 'new_gestionnaire/dossiers/show.html.haml', type: :view do
subject! { render }
it 'renders the header' do
expect(rendered).to have_text("Dossier nº #{dossier.id}")
expect(rendered).to have_text("Dossier nº #{dossier.id}")
end
it 'renders the dossier infos' do

View file

@ -12,7 +12,7 @@ describe 'new_user/dossiers/demande.html.haml', type: :view do
subject! { render }
it 'renders the header' do
expect(rendered).to have_text("Dossier nº #{dossier.id}")
expect(rendered).to have_text("Dossier nº #{dossier.id}")
end
it 'renders the dossier infos' do

View file

@ -11,7 +11,7 @@ describe 'new_user/dossiers/show.html.haml', type: :view do
subject! { render }
it 'renders a summary of the dossier state' do
expect(rendered).to have_text("Dossier nº #{dossier.id}")
expect(rendered).to have_text("Dossier nº #{dossier.id}")
expect(rendered).to have_selector('.status-overview')
end

View file

@ -9,7 +9,7 @@ describe 'new_user/dossiers/show/header.html.haml', type: :view do
it 'affiche les informations du dossier' do
expect(rendered).to have_text(dossier.procedure.libelle)
expect(rendered).to have_text("Dossier nº #{dossier.id}")
expect(rendered).to have_text("Dossier nº #{dossier.id}")
expect(rendered).to have_text("en construction")
expect(rendered).to have_selector("ul.tabs")