From 2b3133d2e82690c8b489811a18ea8d60c90b72e2 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 28 Feb 2023 15:20:33 +0000 Subject: [PATCH] Fix new rubocop warnings --- test/integration/oauth2_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/oauth2_test.rb b/test/integration/oauth2_test.rb index 8de381c65..5750a30b2 100644 --- a/test/integration/oauth2_test.rb +++ b/test/integration/oauth2_test.rb @@ -131,7 +131,7 @@ class OAuth2Test < ActionDispatch::IntegrationTest post oauth_token_path(options) assert_response :success - token = JSON.parse(response.body) + token = response.parsed_body assert_equal "Bearer", token["token_type"] assert_equal "read_prefs", token["scope"] -- 2.39.5