From 89c245f75a7c48bf667efdcb5324bec8f64757db Mon Sep 17 00:00:00 2001 From: JG Date: Mon, 6 Jun 2022 10:54:00 +0100 Subject: [PATCH] fixed missing bracket and test --- app/views/organisations/index.html.erb | 2 +- spec/requests/organisations_controller_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/organisations/index.html.erb b/app/views/organisations/index.html.erb index 8c6153f82..802d2bb0c 100644 --- a/app/views/organisations/index.html.erb +++ b/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 %> diff --git a/spec/requests/organisations_controller_spec.rb b/spec/requests/organisations_controller_spec.rb index 5647cfe7a..6804f7ef7 100644 --- a/spec/requests/organisations_controller_spec.rb +++ b/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