Browse Source

remove bulk upload tests for adding validations to unpermitted values to radio questions, these are now being cleared before validation

pull/1469/head
Arthur Campbell 3 years ago
parent
commit
bbf766393b
  1. 18
      spec/services/bulk_upload/lettings/year2022/row_parser_spec.rb
  2. 8
      spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb

18
spec/services/bulk_upload/lettings/year2022/row_parser_spec.rb

@ -852,16 +852,6 @@ RSpec.describe BulkUpload::Lettings::Year2022::RowParser do
end
end
describe "#field_134" do
context "when an unpermitted value" do
let(:attributes) { { bulk_upload:, field_134: "3" } }
it "has errors on the field" do
expect(parser.errors[:field_134]).to be_present
end
end
end
describe "#field_103" do
context "when null" do
let(:attributes) { setup_section_params.merge({ field_103: nil }) }
@ -874,14 +864,6 @@ RSpec.describe BulkUpload::Lettings::Year2022::RowParser do
expect(parser.errors[:field_103]).to eql(["You must answer type of building"])
end
end
context "when unpermitted values" do
let(:attributes) { setup_section_params.merge({ field_103: "4" }) }
it "returns an error" do
expect(parser.errors[:field_103]).to be_present
end
end
end
end

8
spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb

@ -842,14 +842,6 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do
expect(parser.errors[:field_30]).to eql(["You must answer type of building"])
end
end
context "when unpermitted values" do
let(:attributes) { setup_section_params.merge({ field_30: "4" }) }
it "returns an error" do
expect(parser.errors[:field_30]).to be_present
end
end
end
describe "#field_52" do # age2

Loading…
Cancel
Save