|
|
@ -1295,6 +1295,7 @@ RSpec.describe BulkUpload::Lettings::Year2022::RowParser do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
describe "#net_income_known" do |
|
|
|
describe "#net_income_known" do |
|
|
|
|
|
|
|
context "when 1" do |
|
|
|
let(:attributes) { { bulk_upload:, field_51: "1" } } |
|
|
|
let(:attributes) { { bulk_upload:, field_51: "1" } } |
|
|
|
|
|
|
|
|
|
|
|
it "sets value from correct mapping" do |
|
|
|
it "sets value from correct mapping" do |
|
|
@ -1302,6 +1303,31 @@ RSpec.describe BulkUpload::Lettings::Year2022::RowParser do |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context "when 2" do |
|
|
|
|
|
|
|
let(:attributes) { { bulk_upload:, field_51: "2" } } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "sets value from correct mapping" do |
|
|
|
|
|
|
|
expect(parser.log.net_income_known).to eq(1) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context "when 3" do |
|
|
|
|
|
|
|
let(:attributes) { { bulk_upload:, field_51: "3" } } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "sets value from correct mapping" do |
|
|
|
|
|
|
|
expect(parser.log.net_income_known).to eq(1) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context "when 4" do |
|
|
|
|
|
|
|
let(:attributes) { { bulk_upload:, field_51: "4" } } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_105: "1" } } |
|
|
|
let(:attributes) { { bulk_upload:, field_105: "1" } } |
|
|
|
|
|
|
|
|
|
|
|