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