fix: super admin test where attribute was not reloaded
This commit is contained in:
parent
faad8abaf6
commit
06296e933a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue