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"))