specs: ensure that discarded procedures are not shown
This commit is contained in:
parent
abe692ecc2
commit
32ad152347
1 changed files with 8 additions and 0 deletions
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Reference in a new issue