Merge pull request #5929 from betagouv/fix-rspec-warning

specs: fix rspec warning about raise_error specificity
This commit is contained in:
Paul Chavard 2021-02-23 09:35:08 +01:00 committed by GitHub
commit 4209253091
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -772,7 +772,7 @@ describe Instructeurs::DossiersController, type: :controller do
end
it 'does not delete the dossier' do
expect { dossier.reload }.not_to raise_error ActiveRecord::RecordNotFound
expect { dossier.reload }.not_to raise_error # A deleted dossier would raise an ActiveRecord::RecordNotFound
end
it 'does not add a record into deleted_dossiers table' do