From d63d3687a3c573eba9296fdf9f27e2ce8dbab23e Mon Sep 17 00:00:00 2001 From: samyou-softwire Date: Mon, 23 Feb 2026 11:37:47 +0000 Subject: [PATCH] CLDC-4203: Update tests --- spec/services/bulk_upload/lettings/validator_spec.rb | 4 ++-- .../services/bulk_upload/lettings/year2026/row_parser_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/services/bulk_upload/lettings/validator_spec.rb b/spec/services/bulk_upload/lettings/validator_spec.rb index 58f820440..6823c5ca3 100644 --- a/spec/services/bulk_upload/lettings/validator_spec.rb +++ b/spec/services/bulk_upload/lettings/validator_spec.rb @@ -190,8 +190,8 @@ RSpec.describe BulkUpload::Lettings::Validator do expect(error.tenant_code).to eql(log.tenancycode) expect(error.property_ref).to eql(log.propcode) expect(error.row).to eql("2") - expect(error.cell).to eql("EB2") # this may change when adding a new field as the cols are in a random order - expect(error.col).to eql("EB") # this may change when adding a new field as the cols are in a random order + expect(error.cell).to eql("EA2") # this may change when adding a new field as the cols are in a random order + expect(error.col).to eql("EA") # this may change when adding a new field as the cols are in a random order end end end diff --git a/spec/services/bulk_upload/lettings/year2026/row_parser_spec.rb b/spec/services/bulk_upload/lettings/year2026/row_parser_spec.rb index adc60607f..dc6a81e0a 100644 --- a/spec/services/bulk_upload/lettings/year2026/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/year2026/row_parser_spec.rb @@ -1690,7 +1690,7 @@ RSpec.describe BulkUpload::Lettings::Year2026::RowParser do it "adds a setup error" do parser.valid? - expect(parser.errors.where(:field_7, category: :setup).map(&:message)).to include(I18n.t("validations.lettings.2026.bulk_upload.invalid_option", question: "is this letting a renewal?")) + expect(parser.errors.where(:field_7, category: :setup).map(&:message)).to include(I18n.t("validations.lettings.2026.bulk_upload.invalid_option", question: "is this letting a renewal of social housing to the same tenant in the same property?")) end end end