Browse Source

add placeholder to log to csv for specs

pull/1417/head
Phil Lee 3 years ago
parent
commit
eff9a1bd72
  1. 23
      spec/support/bulk_upload/log_to_csv.rb

23
spec/support/bulk_upload/log_to_csv.rb

@ -9,6 +9,26 @@ class BulkUpload::LogToCsv
end end
def to_2022_csv_row 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 [nil] * col_offset, # 0
log.renttype, # 1 log.renttype, # 1
@ -155,8 +175,7 @@ class BulkUpload::LogToCsv
log.declaration, log.declaration,
log.joint, log.joint,
renewal, renewal,
line_ending, ]
].flatten.join(",")
end end
private private

Loading…
Cancel
Save