Browse Source

Fix heisenbug

pull/650/head
Stéphane Meny 3 years ago
parent
commit
a0ad4843be
No known key found for this signature in database
GPG Key ID: 9D0AFEA988527923
  1. 5
      spec/requests/schemes_controller_spec.rb

5
spec/requests/schemes_controller_spec.rb

@ -273,7 +273,7 @@ RSpec.describe SchemesController, type: :request do
context "when signed in as a data coordinator user" do
let(:user) { FactoryBot.create(:user, :data_coordinator) }
let!(:scheme) { FactoryBot.create(:scheme, organisation: user.organisation) }
let!(:scheme) { FactoryBot.create(:scheme, organisation: user.organisation, service_name: "Miss Frederic O'Hara") }
let!(:locations) { FactoryBot.create_list(:location, 3, scheme:) }
before do
@ -312,7 +312,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

Loading…
Cancel
Save