From b3d0a113eb1a71c9868222047d6fd7482fe18312 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 8 Oct 2018 18:44:19 +0200 Subject: [PATCH] Use non-breaking spaces in tests --- spec/views/new_gestionnaire/dossiers/show.html.haml_spec.rb | 2 +- spec/views/new_user/dossiers/demande.html.haml_spec.rb | 2 +- spec/views/new_user/dossiers/show.html.haml_spec.rb | 2 +- spec/views/new_user/dossiers/show/_header.html.haml_spec.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/views/new_gestionnaire/dossiers/show.html.haml_spec.rb b/spec/views/new_gestionnaire/dossiers/show.html.haml_spec.rb index 561fb278c..2ff909600 100644 --- a/spec/views/new_gestionnaire/dossiers/show.html.haml_spec.rb +++ b/spec/views/new_gestionnaire/dossiers/show.html.haml_spec.rb @@ -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 diff --git a/spec/views/new_user/dossiers/demande.html.haml_spec.rb b/spec/views/new_user/dossiers/demande.html.haml_spec.rb index cad147eed..074c55d78 100644 --- a/spec/views/new_user/dossiers/demande.html.haml_spec.rb +++ b/spec/views/new_user/dossiers/demande.html.haml_spec.rb @@ -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 diff --git a/spec/views/new_user/dossiers/show.html.haml_spec.rb b/spec/views/new_user/dossiers/show.html.haml_spec.rb index 977b5677b..e81b50482 100644 --- a/spec/views/new_user/dossiers/show.html.haml_spec.rb +++ b/spec/views/new_user/dossiers/show.html.haml_spec.rb @@ -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 diff --git a/spec/views/new_user/dossiers/show/_header.html.haml_spec.rb b/spec/views/new_user/dossiers/show/_header.html.haml_spec.rb index 9eaa1d342..ad082af8a 100644 --- a/spec/views/new_user/dossiers/show/_header.html.haml_spec.rb +++ b/spec/views/new_user/dossiers/show/_header.html.haml_spec.rb @@ -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")