fix(avis_controller): revoked acl on update_expert
This commit is contained in:
parent
531cbf2612
commit
71dd0b99ab
2 changed files with 7 additions and 1 deletions
|
@ -498,6 +498,12 @@ describe Experts::AvisController, type: :controller do
|
|||
}
|
||||
end
|
||||
|
||||
context 'when the avis is revoked' do
|
||||
before { avis.update(revoked_at: Time.zone.now) }
|
||||
|
||||
it { is_expected.to redirect_to(root_path) }
|
||||
end
|
||||
|
||||
context 'when the expert hasn’t signed up yet' do
|
||||
before { expert.user.update(last_sign_in_at: nil) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue