diff --git a/app/services/bulk_upload/lettings/year2024/row_parser.rb b/app/services/bulk_upload/lettings/year2024/row_parser.rb index 3d36e743e..b27e078d0 100644 --- a/app/services/bulk_upload/lettings/year2024/row_parser.rb +++ b/app/services/bulk_upload/lettings/year2024/row_parser.rb @@ -1313,7 +1313,7 @@ private attributes["illness_type_9"] = field_92 attributes["illness_type_10"] = field_95 - attributes["irproduct_other"] = field_12 + attributes["irproduct_other"] = field_12 if RENT_TYPE_BU_MAPPING[field_11] == 5 attributes["propcode"] = field_14 diff --git a/app/services/bulk_upload/lettings/year2025/row_parser.rb b/app/services/bulk_upload/lettings/year2025/row_parser.rb index 485446f0b..b5aea0bcb 100644 --- a/app/services/bulk_upload/lettings/year2025/row_parser.rb +++ b/app/services/bulk_upload/lettings/year2025/row_parser.rb @@ -1310,7 +1310,7 @@ private attributes["illness_type_9"] = field_92 attributes["illness_type_10"] = field_95 - attributes["irproduct_other"] = field_12 + attributes["irproduct_other"] = field_12 if RENT_TYPE_BU_MAPPING[field_11] == 5 attributes["propcode"] = field_14 diff --git a/spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb b/spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb index fc3995766..3aa51c51d 100644 --- a/spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb @@ -2603,7 +2603,7 @@ RSpec.describe BulkUpload::Lettings::Year2024::RowParser do end describe "#irproduct_other" do - let(:attributes) { { bulk_upload:, field_12: "some other product" } } + let(:attributes) { { bulk_upload:, field_11: 6, field_12: "some other product" } } it "sets value to given free text string" do expect(parser.log.irproduct_other).to eql("some other product") diff --git a/spec/services/bulk_upload/lettings/year2025/row_parser_spec.rb b/spec/services/bulk_upload/lettings/year2025/row_parser_spec.rb index fa57ec801..4d31add2b 100644 --- a/spec/services/bulk_upload/lettings/year2025/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/year2025/row_parser_spec.rb @@ -2376,7 +2376,7 @@ RSpec.describe BulkUpload::Lettings::Year2025::RowParser do end describe "#irproduct_other" do - let(:attributes) { { bulk_upload:, field_12: "some other product" } } + let(:attributes) { { bulk_upload:, field_11: 6, field_12: "some other product" } } it "sets value to given free text string" do expect(parser.log.irproduct_other).to eql("some other product")