Merge pull request #5929 from betagouv/fix-rspec-warning
specs: fix rspec warning about raise_error specificity
This commit is contained in:
commit
4209253091
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue