]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/oauth2_test.rb
Change provider name to "microsoft"
[rails.git] / 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"]