test(super-admin): more explicit disable otp test

This commit is contained in:
Colin Darie 2023-05-03 11:37:28 +02:00
parent 4c162a64d9
commit eabc9069f8

View file

@ -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