From 07489f9b55bfedd366ede8ce42708cebb94aba95 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Thu, 13 Apr 2023 17:31:48 +0100 Subject: [PATCH] test: that errors added to address fields too when uprn & address fields all null --- .../services/bulk_upload/lettings/year2023/row_parser_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb b/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb index b0dbfdd49..045c127fa 100644 --- a/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb @@ -829,8 +829,10 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do } 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_19]).to eql(["You must answer q12 - address"]) + expect(parser.errors[:field_21]).to eql(["You must answer town or city"]) end end