From 76851ee791be41f70965fd84d957fa4f5e9caf3b Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Thu, 1 Dec 2022 15:54:10 +0000 Subject: [PATCH] test: fix incorrect test descriptions --- spec/requests/schemes_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/requests/schemes_controller_spec.rb b/spec/requests/schemes_controller_spec.rb index 392665fa9..623b9652d 100644 --- a/spec/requests/schemes_controller_spec.rb +++ b/spec/requests/schemes_controller_spec.rb @@ -674,7 +674,7 @@ RSpec.describe SchemesController, type: :request do } } end - it "renders primary client group after successful update" do + it "renders the same page with error message" do expect(response).to have_http_status(:unprocessable_entity) expect(page).to have_content("Create a new supported housing scheme") expect(page).to have_content(I18n.t("activerecord.errors.models.scheme.attributes.service_name.invalid")) @@ -970,7 +970,7 @@ RSpec.describe SchemesController, type: :request do } } end - it "renders primary client group after successful update" do + it "renders the same page with error message" do expect(response).to have_http_status(:unprocessable_entity) expect(page).to have_content("Create a new supported housing scheme") expect(page).to have_content(I18n.t("activerecord.errors.models.scheme.attributes.owning_organisation_id.invalid"))