@ -754,6 +754,7 @@ private
attributes["ethnic_group2"] = infer_buyer2_ethnic_group_from_ethnic
attributes["ethnicbuy2"] = field_40
attributes["nationalbuy2"] = field_41
attributes
end
@ -643,5 +643,13 @@ RSpec.describe BulkUpload::Sales::Year2023::RowParser do
expect(parser.log.ethnicbuy2).to be(1)
describe "#nationalbuy2" do
let(:attributes) { setup_section_params.merge({ field_41: "18" }) }
it "is correctly set" do
expect(parser.log.nationalbuy2).to be(18)