0
0
Fork 0

Autofix Rubocop RSpec/BeNil (#23653)

This commit is contained in:
Nick Schonning 2023-02-17 07:45:27 -05:00 committed by GitHub
parent 936204b9ea
commit 68b1071f86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 22 additions and 41 deletions

View file

@ -285,7 +285,7 @@ RSpec.describe User, type: :model do
it 'saves nil for otp_secret' do
user = Fabricate.build(:user, otp_secret: 'oldotpcode')
user.disable_two_factor!
expect(user.reload.otp_secret).to be nil
expect(user.reload.otp_secret).to be_nil
end
it 'saves cleared otp_backup_codes' do