Fix RSpec/ExpectChange cop (#25101)
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user