Browse Source

add offered to bulk upload

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

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

@ -346,6 +346,8 @@ private
illness_type_10: %i[field_128],
irproduct_other: %i[field_131],
offered: %i[field_99],
}
end
@ -546,6 +548,8 @@ private
attributes["irproduct_other"] = field_131
attributes["offered"] = field_99
attributes
end

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

@ -621,5 +621,13 @@ RSpec.describe BulkUpload::Lettings::RowParser do
expect(parser.log.scharge).to eq(123.45)
end
end
describe "#offered" do
let(:attributes) { { bulk_upload:, field_99: "3" } }
it "sets value given" do
expect(parser.log.offered).to eq(3)
end
end
end
end

Loading…
Cancel
Save