test(super-admin): more explicit disable otp test
This commit is contained in:
parent
4c162a64d9
commit
eabc9069f8
1 changed files with 3 additions and 1 deletions
|
@ -58,8 +58,10 @@ describe SuperAdmin, type: :model do
|
|||
|
||||
it 'nullifies otp_secret' do
|
||||
super_admin.enable_otp!
|
||||
expect(super_admin.reload.otp_secret).not_to be_nil
|
||||
|
||||
super_admin.disable_otp!
|
||||
expect(super_admin.reload.otp_secret).to eq nil
|
||||
expect(super_admin.reload.otp_secret).to be_nil
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue