|
|
|
@ -565,6 +565,16 @@ RSpec.describe BulkUpload::Sales::Year2023::RowParser do |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
describe "#field_7" do # ownership scheme |
|
|
|
|
|
|
|
context "when an invalid option" do |
|
|
|
|
|
|
|
let(:attributes) { setup_section_params.merge({ field_7: "100" }) } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "returns setup error" do |
|
|
|
|
|
|
|
expect(parser.errors.where(:field_7, category: :setup)).to be_present |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
describe "#field_19" do # UPRN |
|
|
|
describe "#field_19" do # UPRN |
|
|
|
context "when UPRN known and lookup found" do |
|
|
|
context "when UPRN known and lookup found" do |
|
|
|
let(:attributes) { setup_section_params.merge({ field_19: "100023336956" }) } |
|
|
|
let(:attributes) { setup_section_params.merge({ field_19: "100023336956" }) } |
|
|
|
|