|
|
|
@ -1365,6 +1365,7 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
describe "#net_income_known" do |
|
|
|
describe "#net_income_known" do |
|
|
|
|
|
|
|
context "when 1" do |
|
|
|
let(:attributes) { { bulk_upload:, field_120: "1" } } |
|
|
|
let(:attributes) { { bulk_upload:, field_120: "1" } } |
|
|
|
|
|
|
|
|
|
|
|
it "sets value from correct mapping" do |
|
|
|
it "sets value from correct mapping" do |
|
|
|
@ -1372,6 +1373,15 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context "when 3" do |
|
|
|
|
|
|
|
let(:attributes) { { bulk_upload:, field_120: "3" } } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "sets value from correct mapping" do |
|
|
|
|
|
|
|
expect(parser.log.net_income_known).to eq(2) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
describe "#unitletas" do |
|
|
|
describe "#unitletas" do |
|
|
|
let(:attributes) { { bulk_upload:, field_26: "1" } } |
|
|
|
let(:attributes) { { bulk_upload:, field_26: "1" } } |
|
|
|
|
|
|
|
|
|
|
|
|