Autofix Rubocop Rails/ResponseParsedBody (#24051)

This commit is contained in:
Nick Schonning authored and GitHub committed 2023-04-26 17:25:07 +02:00
1 parent c7cd891e86
commit 90beba57d8
4 files changed
+3 -12

No files matched your search

@@ -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'].pluck('id')
excluded_credentials_ids = response.parsed_body['excludeCredentials'].pluck('id')
expect(excluded_credentials_ids).to match_array(user.webauthn_credentials.pluck(:external_id))
end
end