fix: super admin test where attribute was not reloaded

This commit is contained in:
Nicolas Cavigneaux 2023-03-15 16:34:12 +01:00 committed by Colin Darie
parent faad8abaf6
commit 06296e933a
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -58,7 +58,8 @@ describe SuperAdmin, type: :model do
it 'nullifies otp_secret' do
super_admin.enable_otp!
expect { subject }.to change { super_admin.reload.otp_secret }.to(nil)
super_admin.disable_otp!
expect(super_admin.reload.otp_secret).to eq nil
end
end