From f8c9e6d70ee40975907c930dc60e1e937b41b436 Mon Sep 17 00:00:00 2001 From: JG Date: Fri, 17 Jun 2022 14:46:16 +0100 Subject: [PATCH] fixed hyphons --- app/components/search_result_caption_component.html.erb | 2 +- spec/requests/schemes_controller_spec.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/components/search_result_caption_component.html.erb b/app/components/search_result_caption_component.html.erb index 49ffbdc07..f16cc485e 100644 --- a/app/components/search_result_caption_component.html.erb +++ b/app/components/search_result_caption_component.html.erb @@ -1,6 +1,6 @@ <% if searched.present? %> - <%= count %> <%= item_label %> found matching '<%= searched %>' of <%= total_count %> total <%= item %>. <%= govuk_link_to("Clear search", path) %> + <%= count %> <%= item_label %> found matching ‘<%= searched %>’ of <%= total_count %> total <%= item %>. <%= govuk_link_to("Clear search", path) %> <% else %> <%= count %> total <%= item %>. <% end %> diff --git a/spec/requests/schemes_controller_spec.rb b/spec/requests/schemes_controller_spec.rb index f06d03345..38692811e 100644 --- a/spec/requests/schemes_controller_spec.rb +++ b/spec/requests/schemes_controller_spec.rb @@ -151,7 +151,6 @@ RSpec.describe SchemesController, type: :request do end it "updates the table caption" do - debugger expect(page).to have_content("1 scheme found matching ‘#{search_param}’") end