Browse Source

add #rsnvac to bulk upload

remotes/origin/bulk-upload-errors-integration
Phil Lee 3 years ago
parent
commit
42f4aef2b0
  1. 2
      app/services/bulk_upload/lettings/row_parser.rb
  2. 8
      spec/services/bulk_upload/lettings/row_parser_spec.rb

2
app/services/bulk_upload/lettings/row_parser.rb

@ -322,6 +322,7 @@ private
tshortfall: %i[field_88],
unitletas: %i[field_105],
rsnvac: %i[field_106],
}
end
@ -497,6 +498,7 @@ private
attributes["hhmemb"] = hhmemb
attributes["unitletas"] = field_105
attributes["rsnvac"] = field_106
attributes
end

8
spec/services/bulk_upload/lettings/row_parser_spec.rb

@ -466,5 +466,13 @@ RSpec.describe BulkUpload::Lettings::RowParser do
expect(parser.log.unitletas).to eq(1)
end
end
describe "#rsnvac" do
let(:attributes) { { bulk_upload:, field_106: "5" } }
it "sets value from correct mapping" do
expect(parser.log.rsnvac).to eq(5)
end
end
end
end

Loading…
Cancel
Save