From 9949cf56883d90805e89e77a65fc0ec9854bb153 Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Tue, 10 Jan 2023 09:41:00 +0000 Subject: [PATCH] placeholder test for bulk upload validation --- spec/services/bulk_upload/lettings/row_parser_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/services/bulk_upload/lettings/row_parser_spec.rb b/spec/services/bulk_upload/lettings/row_parser_spec.rb index 9439a0522..0e223aa12 100644 --- a/spec/services/bulk_upload/lettings/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/row_parser_spec.rb @@ -213,6 +213,16 @@ RSpec.describe BulkUpload::Lettings::RowParser do end end + describe "#field_10" do + context "when field_9 is 3 aka other" do + let(:attributes) { { bulk_upload:, field_9: "3" } } + + xit "returns an error" do + expect(parser.errors[:field_10]).to be_present + end + end + end + describe "fields 96, 97, 98 => startdate" do context "when any one of these fields is blank" do let(:attributes) { { bulk_upload:, field_96: nil, field_97: nil, field_98: nil } }