: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",
: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",
:redirect_uri => application.redirect_uri,
:response_type => "code",
:scope => "write_api")
- assert_response :redirect
assert_redirected_to(/^#{Regexp.escape(application.redirect_uri)}\?code=/)
end
: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