Browse Source

test: wip test that correct errors are added

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

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

@ -202,6 +202,11 @@ RSpec.describe BulkUpload::Lettings::RowParser do
it "is not a valid row" do
expect(parser).not_to be_valid
end
it "adds an error to all fields used to determine duplicity" do
parser.valid?
expect(parser.errors.added?(:field_101, "test")).to be true
end
end
end
end

Loading…
Cancel
Save