From 39756f5a7275f1e86b0b7151453b2dbb8310b21c Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Wed, 17 Jul 2024 18:09:16 +0100 Subject: [PATCH] Remove pre 2023 test --- .../validations/sales/financial_validations_spec.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/spec/models/validations/sales/financial_validations_spec.rb b/spec/models/validations/sales/financial_validations_spec.rb index c5c685184..65fd53f0f 100644 --- a/spec/models/validations/sales/financial_validations_spec.rb +++ b/spec/models/validations/sales/financial_validations_spec.rb @@ -338,16 +338,6 @@ RSpec.describe Validations::Sales::FinancialValidations do expect(record.errors["income2"]).to include(match I18n.t("validations.financial.income.child_has_income")) end end - - context "and saledate is before the 23/24 collection window" do - let(:record) { build(:sales_log, saledate: Time.zone.local(2022, 4, 3), ecstat2: 9) } - - it "does not add an error if the saledate is before the 23/24 collection window" do - record.income2 = 40_000 - financial_validator.validate_child_income(record) - expect(record.errors).to be_empty - end - end end end