]> git.openstreetmap.org Git - rails.git/commitdiff
Fix new rubocop warnings
authorTom Hughes <tom@compton.nu>
Tue, 28 Feb 2023 15:20:33 +0000 (15:20 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 28 Feb 2023 15:20:33 +0000 (15:20 +0000)
test/integration/oauth2_test.rb

index 8de381c658d5150eab8245d7fa6735bf5db8510e..5750a30b29adc0fcdaa13cf9671734071f3f5ee4 100644 (file)
@@ -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"]