Browse Source

test: make UPRN<=12 chars test more specific

pull/1524/head
Sam Seed 2 years ago
parent
commit
6de65fcb39
  1. 4
      spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb

4
spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb

@ -806,8 +806,8 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do
context "when over 12 characters" do
let(:attributes) { { bulk_upload:, field_18: "1234567890123" } }
it "has errors on the field" do
expect(parser.errors[:field_18]).to be_present
it "adds an appropriate error" do
expect(parser.errors[:field_18]).to eql(["UPRN must be 12 digits or less"])
end
end

Loading…
Cancel
Save