Browse Source

fixup! CLDC-4328: Use a specific error message per year/log type

CLDC-4328-wrong-column-count-error-message
samyou-softwire 5 days ago
parent
commit
2e9c7619f7
  1. 4
      spec/services/bulk_upload/lettings/validator_spec.rb

4
spec/services/bulk_upload/lettings/validator_spec.rb

@ -55,7 +55,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do
expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the template for the correct type (lettings or sales) and year."])
expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the template for lettings #{year}."])
end
end
@ -72,7 +72,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do
expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the template for the correct type (lettings or sales) and year."])
expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the template for lettings #{year}."])
end
end
end

Loading…
Cancel
Save