Fix RSpec/ExpectChange cop (#25101)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2023-05-24 11:23:40 +02:00
1 parent 1caa5ff39e
commit d2e5430d4a
12 files changed
+24 -41

No files matched your search

@@ -134,7 +134,7 @@ describe Settings::TwoFactorAuthentication::WebauthnCredentialsController do
end
it 'does not change webauthn_id' do
expect { get :options }.to_not change { user.webauthn_id }
expect { get :options }.to_not change(user, :webauthn_id)
end
it 'includes existing credentials in list of excluded credentials' do
@@ -238,7 +238,7 @@ describe Settings::TwoFactorAuthentication::WebauthnCredentialsController do
expect do
post :create, params: { credential: new_webauthn_credential, nickname: nickname }
end.to_not change { user.webauthn_id }
end.to_not change(user, :webauthn_id)
end
end