create(:oauth_application)
get oauth_authorized_applications_path
- assert_response :redirect
assert_redirected_to login_path(:referer => oauth_authorized_applications_path)
session_for(user)
create(:oauth_access_token, :resource_owner_id => user.id, :application => application1, :scopes => %w[read_prefs write_diary])
get oauth_authorized_applications_path
- assert_response :redirect
assert_redirected_to login_path(:referer => oauth_authorized_applications_path)
session_for(user)
session_for(user)
delete oauth_authorized_application_path(:id => application1.id)
- assert_response :redirect
assert_redirected_to oauth_authorized_applications_path
get oauth_authorized_applications_path