Browse Source

fixup! CLDC-4168: Allow mortgage not know if buyer wasn't interviewed

missed test fix
pull/3195/head
samyou-softwire 1 month ago
parent
commit
4f106425ce
  1. 12
      spec/services/bulk_upload/sales/year2026/row_parser_spec.rb

12
spec/services/bulk_upload/sales/year2026/row_parser_spec.rb

@ -2031,9 +2031,9 @@ RSpec.describe BulkUpload::Sales::Year2026::RowParser do
expect(log.mortlen).to eq(20) expect(log.mortlen).to eq(20)
end end
it "sets mortlen_known to yes" do it "sets mortlen_known to nil" do
log = parser.log log = parser.log
expect(log.mortlen_known).to eq(0) expect(log.mortlen_known).to be_nil
end end
end end
@ -2045,9 +2045,9 @@ RSpec.describe BulkUpload::Sales::Year2026::RowParser do
expect(log.mortlen).to eq(20) expect(log.mortlen).to eq(20)
end end
it "sets mortlen_known to nil" do it "sets mortlen_known to yes" do
log = parser.log log = parser.log
expect(log.mortlen_known).to be_nil expect(log.mortlen_known).to eq(0)
end end
end end
end end
@ -2055,8 +2055,8 @@ RSpec.describe BulkUpload::Sales::Year2026::RowParser do
context "when field_90 is R" do context "when field_90 is R" do
let(:field_90_number_attributes) { valid_attributes.merge({ field_90: "R" }) } let(:field_90_number_attributes) { valid_attributes.merge({ field_90: "R" }) }
context "and buyer was interviewed" do context "and buyer was not interviewed" do
let(:attributes) { field_90_number_attributes.merge({ field_14: 2 }) } let(:attributes) { field_90_number_attributes.merge({ field_14: 1 }) }
it "sets mortlen to nil" do it "sets mortlen to nil" do
log = parser.log log = parser.log

Loading…
Cancel
Save