From 666a1e95c123904b2678569fa14d1c21327a8b68 Mon Sep 17 00:00:00 2001 From: JG Date: Thu, 7 Jul 2022 15:17:06 +0100 Subject: [PATCH] added Which organisation owns the housing stock for this scheme? to the check --- spec/requests/schemes_controller_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/requests/schemes_controller_spec.rb b/spec/requests/schemes_controller_spec.rb index bbb124e17..49ce55790 100644 --- a/spec/requests/schemes_controller_spec.rb +++ b/spec/requests/schemes_controller_spec.rb @@ -1244,6 +1244,7 @@ RSpec.describe SchemesController, type: :request do it "returns a template for a edit-name" do expect(response).to have_http_status(:ok) expect(page).to have_content("Scheme details") + expect(page).not_to have_content("Which organisation owns the housing stock for this scheme?") end context "when attempting to access secondary-client-group scheme page for another organisation" do @@ -1271,6 +1272,7 @@ RSpec.describe SchemesController, type: :request do it "returns a template for a secondary-client-group" do expect(response).to have_http_status(:ok) expect(page).to have_content("Scheme details") + expect(page).to have_content("Which organisation owns the housing stock for this scheme?") end end end