Browse Source

CLDC-4203: Update tests

pull/3189/head
samyou-softwire 3 weeks ago
parent
commit
d63d3687a3
  1. 4
      spec/services/bulk_upload/lettings/validator_spec.rb
  2. 2
      spec/services/bulk_upload/lettings/year2026/row_parser_spec.rb

4
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.tenant_code).to eql(log.tenancycode)
expect(error.property_ref).to eql(log.propcode) expect(error.property_ref).to eql(log.propcode)
expect(error.row).to eql("2") 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.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("EB") # 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 end
end end

2
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 it "adds a setup error" do
parser.valid? 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 end
end end

Loading…
Cancel
Save