From d9ea415d4484bf4954c41dc4cbba76f97b045409 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 23 Feb 2021 08:25:24 +0100 Subject: [PATCH] specs: fix rspec warning about raise_error specificity --- spec/controllers/instructeurs/dossiers_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/instructeurs/dossiers_controller_spec.rb b/spec/controllers/instructeurs/dossiers_controller_spec.rb index 650725dec..c477fb06c 100644 --- a/spec/controllers/instructeurs/dossiers_controller_spec.rb +++ b/spec/controllers/instructeurs/dossiers_controller_spec.rb @@ -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