Browse Source

test: add duplicate log test in row_parser

cldc-1888-bulk-upload-duplicate-log-validation
Sam Seed 2 years ago
parent
commit
f54ff38f30
  1. 7
      spec/services/bulk_upload/lettings/row_parser_spec.rb

7
spec/services/bulk_upload/lettings/row_parser_spec.rb

@ -193,6 +193,13 @@ RSpec.describe BulkUpload::Lettings::RowParser do
expect(questions.map(&:id).size).to eq(0)
expect(questions.map(&:id)).to eql([])
end
context "when the log already exists in the db" do
it "is not a valid row" do
parser.log.save
expect(parser).not_to be_valid
end
end
end
end

Loading…
Cancel
Save