diff --git a/spec/controllers/instructeurs/procedures_controller_spec.rb b/spec/controllers/instructeurs/procedures_controller_spec.rb index 558312500..9b91ed178 100644 --- a/spec/controllers/instructeurs/procedures_controller_spec.rb +++ b/spec/controllers/instructeurs/procedures_controller_spec.rb @@ -236,6 +236,14 @@ describe Instructeurs::ProceduresController, type: :controller do instructeur.groupe_instructeurs << gi_2 end + context 'when the procedure is discarded' do + before do + procedure.discard! + end + + it { expect { subject }.to raise_error(ActiveRecord::RecordNotFound) } + end + context "without any dossier" do before { subject }