specs: fix rspec warning about raise_error specificity

This commit is contained in:
Pierre de La Morinerie 2021-02-23 08:25:24 +01:00
parent 4a08f6cf3f
commit d9ea415d44

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