From 45bf591fed12512698cfd6d5212d8526eefb8037 Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Tue, 9 Dec 2025 09:25:30 +0000 Subject: [PATCH] CLDC-3501: Remove charge not provided test this was moved to a soft validation in #1359 --- .../models/validations/financial_validations_spec.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/spec/models/validations/financial_validations_spec.rb b/spec/models/validations/financial_validations_spec.rb index 7e458ee28..14e2dfd0c 100644 --- a/spec/models/validations/financial_validations_spec.rb +++ b/spec/models/validations/financial_validations_spec.rb @@ -1191,18 +1191,6 @@ RSpec.describe Validations::FinancialValidations do end end - context "and charges are not provided" do - xit "throws an error" do - record.period = 3 - record.chcharge = nil - financial_validator.validate_care_home_charges(record) - expect(record.errors["chcharge"]) - .to include(match I18n.t("validations.lettings.financial.carehome.not_provided", period: "every 4 weeks")) - expect(record.errors["is_carehome"]) - .to include(match I18n.t("validations.lettings.financial.carehome.not_provided", period: "every 4 weeks")) - end - end - context "and charges under valid limit (£10pw)" do it "validates charge when period is weekly for 52 weeks" do record.period = 1