diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-19 20:28:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 02:28:40 +0100 |
commit | 21bf32635687770bc0026d769a69f49b89f8a0a2 (patch) | |
tree | 9fde82eedc10fe01b9450a2591fc2f530f29c1d6 /spec/controllers/settings/two_factor_authentication | |
parent | 597767a9f7ca846be9fbca826aba362f8387a60f (diff) |
Autofix Rubocop Rails/Pluck (#23730)
Diffstat (limited to 'spec/controllers/settings/two_factor_authentication')
-rw-r--r-- | spec/controllers/settings/two_factor_authentication/webauthn_credentials_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/settings/two_factor_authentication/webauthn_credentials_controller_spec.rb b/spec/controllers/settings/two_factor_authentication/webauthn_credentials_controller_spec.rb index c3156c4e9..f060c3a4b 100644 --- a/spec/controllers/settings/two_factor_authentication/webauthn_credentials_controller_spec.rb +++ b/spec/controllers/settings/two_factor_authentication/webauthn_credentials_controller_spec.rb @@ -140,7 +140,7 @@ describe Settings::TwoFactorAuthentication::WebauthnCredentialsController do it 'includes existing credentials in list of excluded credentials' do get :options - excluded_credentials_ids = JSON.parse(response.body)['excludeCredentials'].map { |credential| credential['id'] } + excluded_credentials_ids = JSON.parse(response.body)['excludeCredentials'].pluck('id') expect(excluded_credentials_ids).to match_array(user.webauthn_credentials.pluck(:external_id)) end end |