|
|
@ -2258,12 +2258,22 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
describe "#household_charge" do |
|
|
|
describe "#household_charge" do |
|
|
|
let(:attributes) { { bulk_upload:, field_125: "1" } } |
|
|
|
context "when log is general needs" do |
|
|
|
|
|
|
|
let(:attributes) { { bulk_upload:, field_4: 1, field_125: "1" } } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "sets correct value from mapping" do |
|
|
|
|
|
|
|
expect(parser.log.household_charge).to eq(nil) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context "when log is supported housing" do |
|
|
|
|
|
|
|
let(:attributes) { { bulk_upload:, field_4: 2, field_125: "1" } } |
|
|
|
|
|
|
|
|
|
|
|
it "sets correct value from mapping" do |
|
|
|
it "sets correct value from mapping" do |
|
|
|
expect(parser.log.household_charge).to eq(1) |
|
|
|
expect(parser.log.household_charge).to eq(1) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
describe "#chcharge" do |
|
|
|
describe "#chcharge" do |
|
|
|
let(:attributes) { { bulk_upload:, field_127: "123.45" } } |
|
|
|
let(:attributes) { { bulk_upload:, field_127: "123.45" } } |
|
|
|