From eff9a1bd72527f6528a7d79821d4c30355a266ff Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Thu, 9 Mar 2023 15:51:04 +0000 Subject: [PATCH] add placeholder to log to csv for specs --- spec/support/bulk_upload/log_to_csv.rb | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/spec/support/bulk_upload/log_to_csv.rb b/spec/support/bulk_upload/log_to_csv.rb index d0dc6a3af..f11adea3d 100644 --- a/spec/support/bulk_upload/log_to_csv.rb +++ b/spec/support/bulk_upload/log_to_csv.rb @@ -9,6 +9,26 @@ class BulkUpload::LogToCsv end def to_2022_csv_row + (to_2022_row + [line_ending]).flatten.join(",") + end + + def to_2023_csv_row + (to_2023_row + [line_ending]).flatten.join(",") + end + + def to_2023_row + to_2022_row + [ + # needstype, + # location, + # uprn, + # address_line_1, + # address_line_2, + # town_or_city, + # county, + ] + end + + def to_2022_row [ [nil] * col_offset, # 0 log.renttype, # 1 @@ -155,8 +175,7 @@ class BulkUpload::LogToCsv log.declaration, log.joint, renewal, - line_ending, - ].flatten.join(",") + ] end private