|
|
|
@ -1063,12 +1063,30 @@ RSpec.describe BulkUpload::Sales::Year2024::RowParser do |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
describe "#ethnic_group" do |
|
|
|
|
|
|
|
context "when field_33 is 20" do |
|
|
|
|
|
|
|
let(:attributes) { setup_section_params.merge({ field_33: "20" }) } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "is correctly set" do |
|
|
|
|
|
|
|
expect(parser.log.ethnic_group).to be(0) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
describe "#ethnic_group2" do |
|
|
|
describe "#ethnic_group2" do |
|
|
|
let(:attributes) { setup_section_params.merge({ field_40: "1" }) } |
|
|
|
let(:attributes) { setup_section_params.merge({ field_40: "1" }) } |
|
|
|
|
|
|
|
|
|
|
|
it "is correctly set" do |
|
|
|
it "is correctly set" do |
|
|
|
expect(parser.log.ethnic_group2).to be(0) |
|
|
|
expect(parser.log.ethnic_group2).to be(0) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context "when field_40 is 20" do |
|
|
|
|
|
|
|
let(:attributes) { setup_section_params.merge({ field_40: "20" }) } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "is correctly set" do |
|
|
|
|
|
|
|
expect(parser.log.ethnic_group2).to be(0) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
describe "#ethnicbuy2" do |
|
|
|
describe "#ethnicbuy2" do |
|
|
|
|