|
|
|
|
@ -625,6 +625,16 @@ RSpec.describe BulkUpload::Sales::Year2023::RowParser do
|
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe "#field_15" do # more than 2 joint buyers? |
|
|
|
|
context "when invalid option and must be answered" do |
|
|
|
|
let(:attributes) { setup_section_params.merge({ field_14: "1", field_15: "100" }) } |
|
|
|
|
|
|
|
|
|
it "returns a setup error" do |
|
|
|
|
expect(parser.errors.where(:field_15, category: :setup)).to be_present |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe "#field_19" do # UPRN |
|
|
|
|
context "when UPRN known and lookup found" do |
|
|
|
|
let(:attributes) { setup_section_params.merge({ field_19: "100023336956" }) } |
|
|
|
|
|