tests
This commit is contained in:
parent
c1065c7670
commit
7b73cb239a
1 changed files with 13 additions and 0 deletions
|
@ -761,4 +761,17 @@ describe Administrateurs::ProceduresController, type: :controller do
|
||||||
it { expect(procedure.allow_expert_review).to be_truthy }
|
it { expect(procedure.allow_expert_review).to be_truthy }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe 'PUT #restore' do
|
||||||
|
let(:procedure) { create :procedure, :discarded, administrateur: admin }
|
||||||
|
|
||||||
|
context 'when the admin wants to restore a procedure' do
|
||||||
|
before do
|
||||||
|
put :restore, params: { id: procedure.id }
|
||||||
|
procedure.reload
|
||||||
|
end
|
||||||
|
|
||||||
|
it { expect(procedure.discarded?).to be_falsy }
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue