From 8ccb62ef444ee7fa96abc1180f8f91156d6c968f Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Wed, 8 Feb 2023 16:01:07 +0000 Subject: [PATCH] test: wip test that correct errors are added --- spec/services/bulk_upload/lettings/row_parser_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/services/bulk_upload/lettings/row_parser_spec.rb b/spec/services/bulk_upload/lettings/row_parser_spec.rb index 9bfb366bf..d5c4137b4 100644 --- a/spec/services/bulk_upload/lettings/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/row_parser_spec.rb @@ -202,6 +202,11 @@ RSpec.describe BulkUpload::Lettings::RowParser do it "is not a valid row" do expect(parser).not_to be_valid end + + it "adds an error to all fields used to determine duplicity" do + parser.valid? + expect(parser.errors.added?(:field_101, "test")).to be true + end end end end