fix(avis_controller): revoked acl on update
This commit is contained in:
parent
cb2e1db52e
commit
3be17da70e
2 changed files with 7 additions and 1 deletions
|
@ -190,6 +190,12 @@ describe Experts::AvisController, type: :controller do
|
|||
avis.reload
|
||||
end
|
||||
|
||||
context 'on a revoked avis' do
|
||||
let(:avis) { revoked_avis }
|
||||
|
||||
it { expect(subject).to redirect_to(root_path) }
|
||||
end
|
||||
|
||||
context 'without attachment' do
|
||||
it 'should be ok' do
|
||||
expect(subject).to redirect_to(instruction_expert_avis_path(avis.procedure, avis))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue