Browse Source

CLDC-3501: Remove charge not provided test

this was moved to a soft validation in #1359
pull/3127/head
Samuel Young 3 weeks ago
parent
commit
45bf591fed
  1. 12
      spec/models/validations/financial_validations_spec.rb

12
spec/models/validations/financial_validations_spec.rb

@ -1191,18 +1191,6 @@ RSpec.describe Validations::FinancialValidations do
end end
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 context "and charges under valid limit (£10pw)" do
it "validates charge when period is weekly for 52 weeks" do it "validates charge when period is weekly for 52 weeks" do
record.period = 1 record.period = 1

Loading…
Cancel
Save