create_list(:access_token, 2, :user => user)
get oauth_clients_path(:display_name => user.display_name)
create_list(:access_token, 2, :user => user)
get oauth_clients_path(:display_name => user.display_name)
with_settings(:oauth_10_registration => false) do
get new_oauth_client_path(:display_name => user.display_name)
with_settings(:oauth_10_registration => false) do
get new_oauth_client_path(:display_name => user.display_name)
assert_redirected_to login_path(:referer => new_oauth_client_path(:display_name => user.display_name))
session_for(user)
get new_oauth_client_path(:display_name => user.display_name)
assert_redirected_to login_path(:referer => new_oauth_client_path(:display_name => user.display_name))
session_for(user)
get new_oauth_client_path(:display_name => user.display_name)
:client_application => { :name => "Test Application",
:url => "http://test.example.com/" })
end
:client_application => { :name => "Test Application",
:url => "http://test.example.com/" })
end
other_client = create(:client_application)
get oauth_client_path(:display_name => user.display_name, :id => client)
other_client = create(:client_application)
get oauth_client_path(:display_name => user.display_name, :id => client)
other_client = create(:client_application)
get edit_oauth_client_path(:display_name => user.display_name, :id => client)
other_client = create(:client_application)
get edit_oauth_client_path(:display_name => user.display_name, :id => client)
put oauth_client_path(:display_name => user.display_name, :id => client,
:client_application => { :name => "New Name", :url => "http://new.example.com/url" })
put oauth_client_path(:display_name => user.display_name, :id => client,
:client_application => { :name => "New Name", :url => "http://new.example.com/url" })
assert_difference "ClientApplication.count", -1 do
delete oauth_client_path(:display_name => user.display_name, :id => client)
end
assert_difference "ClientApplication.count", -1 do
delete oauth_client_path(:display_name => user.display_name, :id => client)
end