Browse Source

test: put test within context block for clarity

pull/1524/head
Sam Seed 3 years ago
parent
commit
7a4b189c04
  1. 4
      spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb

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

@ -238,7 +238,8 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do
end
describe "#validate_nulls" do
let(:attributes) { { bulk_upload:, field_18: "", field_19: "", field_21: "" } }
context "for non-setup questions" do
let(:attributes) { { bulk_upload:, field_1: "", field_18: "", field_19: "", field_21: "" } }
it "fetches the question's check_answer_label if it exists, otherwise it get's the question's header" do
parser.valid?
@ -247,6 +248,7 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do
end
end
end
end
context "when setup section not complete" do
let(:attributes) { { bulk_upload:, field_13: "123" } }

Loading…
Cancel
Save