specs: ensure that discarded procedures are not shown

This commit is contained in:
Pierre de La Morinerie 2020-04-22 15:53:54 +02:00
parent abe692ecc2
commit 32ad152347

View file

@ -236,6 +236,14 @@ describe Instructeurs::ProceduresController, type: :controller do
instructeur.groupe_instructeurs << gi_2 instructeur.groupe_instructeurs << gi_2
end 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 context "without any dossier" do
before { subject } before { subject }