From 301d54005eed1b6d73d7d5aa86cd6c62e305b96d Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Fri, 24 Jun 2022 15:22:53 +0100 Subject: [PATCH] Heisenspec --- spec/requests/schemes_controller_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/requests/schemes_controller_spec.rb b/spec/requests/schemes_controller_spec.rb index 0dd5385c2..bb4db01d2 100644 --- a/spec/requests/schemes_controller_spec.rb +++ b/spec/requests/schemes_controller_spec.rb @@ -393,7 +393,8 @@ RSpec.describe SchemesController, type: :request do end it "has correct title" do - expect(page).to have_title("#{scheme.service_name} - Submit social housing lettings and sales data (CORE) - GOV.UK") + expected_title = CGI.escapeHTML("#{scheme.service_name} - Submit social housing lettings and sales data (CORE) - GOV.UK") + expect(page).to have_title(expected_title) end context "when paginating over 20 results" do