Browse Source

test: that errors added to address fields too when uprn & address fields all null

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

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

@ -829,8 +829,10 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do
} }
end end
it "adds an appropriate error" do it "adds appropriate errors" do
expect(parser.errors[:field_18]).to eql(["You must answer UPRN"]) expect(parser.errors[:field_18]).to eql(["You must answer UPRN"])
expect(parser.errors[:field_19]).to eql(["You must answer q12 - address"])
expect(parser.errors[:field_21]).to eql(["You must answer town or city"])
end end
end end

Loading…
Cancel
Save