X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/64c9ff08e3e06ebaae41ad79f96848bdf08c5f6b..73a60baf8ce92a63cbeec73bcccb4b70950a6591:/test/controllers/oauth2_authorizations_controller_test.rb?ds=inline diff --git a/test/controllers/oauth2_authorizations_controller_test.rb b/test/controllers/oauth2_authorizations_controller_test.rb index 43fbe4df4..854f7cde5 100644 --- a/test/controllers/oauth2_authorizations_controller_test.rb +++ b/test/controllers/oauth2_authorizations_controller_test.rb @@ -29,7 +29,6 @@ class Oauth2AuthorizationsControllerTest < ActionDispatch::IntegrationTest :redirect_uri => application.redirect_uri, :response_type => "code", :scope => "write_api") - assert_response :redirect assert_redirected_to login_path(:referer => oauth_authorization_path(:client_id => application.uid, :redirect_uri => application.redirect_uri, :response_type => "code", @@ -52,7 +51,6 @@ class Oauth2AuthorizationsControllerTest < ActionDispatch::IntegrationTest :redirect_uri => application.redirect_uri, :response_type => "code", :scope => "write_api") - assert_response :redirect assert_redirected_to login_path(:referer => oauth_authorization_path(:client_id => application.uid, :redirect_uri => application.redirect_uri, :response_type => "code", @@ -119,7 +117,6 @@ class Oauth2AuthorizationsControllerTest < ActionDispatch::IntegrationTest :redirect_uri => application.redirect_uri, :response_type => "code", :scope => "write_api") - assert_response :redirect assert_redirected_to(/^#{Regexp.escape(application.redirect_uri)}\?code=/) end @@ -160,7 +157,6 @@ class Oauth2AuthorizationsControllerTest < ActionDispatch::IntegrationTest :redirect_uri => application.redirect_uri, :response_type => "code", :scope => "write_api") - assert_response :redirect assert_redirected_to(/^#{Regexp.escape(application.redirect_uri)}\?error=access_denied/) end