Browse Source

handle prevshared for sales bulk upload 2023

pull/1603/head
Phil Lee 2 years ago
parent
commit
5d7fdcd0ed
  1. 2
      app/services/bulk_upload/sales/year2023/row_parser.rb
  2. 8
      spec/services/bulk_upload/sales/year2023/row_parser_spec.rb

2
app/services/bulk_upload/sales/year2023/row_parser.rb

@ -770,6 +770,8 @@ private
attributes["hhregresstill"] = field_74
attributes["prevshared"] = field_85
attributes
end

8
spec/services/bulk_upload/sales/year2023/row_parser_spec.rb

@ -675,5 +675,13 @@ RSpec.describe BulkUpload::Sales::Year2023::RowParser do
expect(parser.log.hhregresstill).to be(4)
end
end
describe "#prevshared" do
let(:attributes) { setup_section_params.merge({ field_85: "3" }) }
it "is correctly set" do
expect(parser.log.prevshared).to be(3)
end
end
end
end

Loading…
Cancel
Save