Browse Source

fixed missing bracket and test

pull/641/head
JG 3 years ago
parent
commit
89c245f75a
  1. 2
      app/views/organisations/index.html.erb
  2. 2
      spec/requests/organisations_controller_spec.rb

2
app/views/organisations/index.html.erb

@ -1,6 +1,6 @@
<% item_label = @pagy.count > 1 ? "organisations" : "organisation" %>
<% if @searched.present? %>
<% title = "Organisations (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %>
<% title = "Organisations (#{@pagy.count} #{item_label} matching ‘#{@searched}’)" %>
<% else %>
<% title = "Organisations" %>
<% end %>

2
spec/requests/organisations_controller_spec.rb

@ -744,7 +744,7 @@ RSpec.describe OrganisationsController, type: :request do
end
it "has search in the title" do
expect(page).to have_title("Organisations (1 organisation matching ‘#{search_param} of 29 total organisations) - Submit social housing lettings and sales data (CORE) - GOV.UK")
expect(page).to have_title("Organisations (1 organisation matching ‘#{search_param}’) - Submit social housing lettings and sales data (CORE) - GOV.UK")
end
context "when the search term matches more than 1 result" do

Loading…
Cancel
Save