From a998c3a6d3ca576f99a429f26d1c20d855ebce0f Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 29 Jan 2024 15:13:33 +0000 Subject: [PATCH] Remove irrelevant test --- .../bulk_upload/sales/year2024/row_parser_spec.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/spec/services/bulk_upload/sales/year2024/row_parser_spec.rb b/spec/services/bulk_upload/sales/year2024/row_parser_spec.rb index 9ecf31d21..5280c5be2 100644 --- a/spec/services/bulk_upload/sales/year2024/row_parser_spec.rb +++ b/spec/services/bulk_upload/sales/year2024/row_parser_spec.rb @@ -989,18 +989,6 @@ RSpec.describe BulkUpload::Sales::Year2024::RowParser do expect(parser.errors.where(:field_31, category: :soft_validation).first.message).to eql("You told us this person is aged 22 years and retired.") end end - - context "when a soft validation is triggered that relates both to fields that are and are not routed to" do - let(:attributes) { valid_attributes.merge({ field_101: "300000" }) } - - it "adds errors to fields that are routed to" do - expect(parser.errors.where(:field_101, category: :soft_validation)).to be_present - end - - it "does not add errors to fields that are not routed to" do - expect(parser.errors.where(:field_112, category: :soft_validation)).not_to be_present - end - end end end