@ -348,6 +348,8 @@ private
irproduct_other: %i[field_131],
offered: %i[field_99],
propcode: %i[field_100],
}
end
@ -550,6 +552,8 @@ private
attributes["offered"] = field_99
attributes["propcode"] = field_100
attributes
@ -629,5 +629,13 @@ RSpec.describe BulkUpload::Lettings::RowParser do
expect(parser.log.offered).to eq(3)
describe "#propcode" do
let(:attributes) { { bulk_upload:, field_100: "abc123" } }
it "sets value given" do
expect(parser.log.propcode).to eq("abc123")