X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/12c1d5e6c05813a0697724277b4d8529a1a7c240..9aa646bd03b7353a6943db80099376c7d1c68d63:/test/integration/oauth2_test.rb 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"]