Browse Source

fixed hyphons

pull/673/head
JG 3 years ago
parent
commit
f8c9e6d70e
  1. 2
      app/components/search_result_caption_component.html.erb
  2. 1
      spec/requests/schemes_controller_spec.rb

2
app/components/search_result_caption_component.html.erb

@ -1,6 +1,6 @@
<span class="govuk-!-margin-right-4">
<% if searched.present? %>
<strong><%= count %></strong> <%= item_label %> found matching '<%= searched %>' of <strong><%= total_count %></strong> total <%= item %>. <%= govuk_link_to("Clear search", path) %>
<strong><%= count %></strong> <%= item_label %> found matching ‘<%= searched %>’ of <strong><%= total_count %></strong> total <%= item %>. <%= govuk_link_to("Clear search", path) %>
<% else %>
<strong><%= count %></strong> total <%= item %>.
<% end %>

1
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

Loading…
Cancel
Save