2012-09-16 08:21:46 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
# search GET /search(.:format) search#show
|
|
|
|
describe SearchController, "routing" do
|
|
|
|
it "to #show" do
|
|
|
|
get("/search").should route_to('search#show')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-05-14 12:33:31 +00:00
|
|
|
# gitlab_api /api API::API
|
2012-09-16 08:21:46 +00:00
|
|
|
# /:path Grack
|
|
|
|
describe "Mounted Apps", "routing" do
|
|
|
|
it "to API" do
|
|
|
|
get("/api").should be_routable
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to Grack" do
|
|
|
|
get("/gitlabhq.git").should be_routable
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-03-24 19:55:51 +00:00
|
|
|
# snippets GET /snippets(.:format) snippets#index
|
|
|
|
# POST /snippets(.:format) snippets#create
|
|
|
|
# new_snippet GET /snippets/new(.:format) snippets#new
|
|
|
|
# edit_snippet GET /snippets/:id/edit(.:format) snippets#edit
|
|
|
|
# snippet GET /snippets/:id(.:format) snippets#show
|
|
|
|
# PUT /snippets/:id(.:format) snippets#update
|
|
|
|
# DELETE /snippets/:id(.:format) snippets#destroy
|
|
|
|
describe SnippetsController, "routing" do
|
|
|
|
it "to #user_index" do
|
|
|
|
get("/s/User").should route_to('snippets#user_index', username: 'User')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #raw" do
|
|
|
|
get("/snippets/1/raw").should route_to('snippets#raw', id: '1')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #index" do
|
|
|
|
get("/snippets").should route_to('snippets#index')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #create" do
|
|
|
|
post("/snippets").should route_to('snippets#create')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #new" do
|
|
|
|
get("/snippets/new").should route_to('snippets#new')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #edit" do
|
|
|
|
get("/snippets/1/edit").should route_to('snippets#edit', id: '1')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #show" do
|
|
|
|
get("/snippets/1").should route_to('snippets#show', id: '1')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #update" do
|
|
|
|
put("/snippets/1").should route_to('snippets#update', id: '1')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #destroy" do
|
|
|
|
delete("/snippets/1").should route_to('snippets#destroy', id: '1')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2012-09-16 08:21:46 +00:00
|
|
|
# help GET /help(.:format) help#index
|
|
|
|
# help_permissions GET /help/permissions(.:format) help#permissions
|
|
|
|
# help_workflow GET /help/workflow(.:format) help#workflow
|
|
|
|
# help_api GET /help/api(.:format) help#api
|
|
|
|
# help_web_hooks GET /help/web_hooks(.:format) help#web_hooks
|
|
|
|
# help_system_hooks GET /help/system_hooks(.:format) help#system_hooks
|
|
|
|
# help_markdown GET /help/markdown(.:format) help#markdown
|
|
|
|
# help_ssh GET /help/ssh(.:format) help#ssh
|
2012-12-08 10:42:38 +00:00
|
|
|
# help_raketasks GET /help/raketasks(.:format) help#raketasks
|
2012-09-16 08:21:46 +00:00
|
|
|
describe HelpController, "routing" do
|
|
|
|
it "to #index" do
|
|
|
|
get("/help").should route_to('help#index')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #permissions" do
|
|
|
|
get("/help/permissions").should route_to('help#permissions')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #workflow" do
|
|
|
|
get("/help/workflow").should route_to('help#workflow')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #api" do
|
|
|
|
get("/help/api").should route_to('help#api')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #web_hooks" do
|
|
|
|
get("/help/web_hooks").should route_to('help#web_hooks')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #system_hooks" do
|
|
|
|
get("/help/system_hooks").should route_to('help#system_hooks')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #markdown" do
|
|
|
|
get("/help/markdown").should route_to('help#markdown')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #ssh" do
|
|
|
|
get("/help/ssh").should route_to('help#ssh')
|
|
|
|
end
|
2012-12-08 10:42:38 +00:00
|
|
|
|
|
|
|
it "to #raketasks" do
|
|
|
|
get("/help/raketasks").should route_to('help#raketasks')
|
|
|
|
end
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# errors_githost GET /errors/githost(.:format) errors#githost
|
|
|
|
describe ErrorsController, "routing" do
|
|
|
|
it "to #githost" do
|
|
|
|
get("/errors/githost").should route_to('errors#githost')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# profile_account GET /profile/account(.:format) profile#account
|
|
|
|
# profile_history GET /profile/history(.:format) profile#history
|
|
|
|
# profile_password PUT /profile/password(.:format) profile#password_update
|
|
|
|
# profile_token GET /profile/token(.:format) profile#token
|
|
|
|
# profile_reset_private_token PUT /profile/reset_private_token(.:format) profile#reset_private_token
|
|
|
|
# profile GET /profile(.:format) profile#show
|
|
|
|
# profile_design GET /profile/design(.:format) profile#design
|
|
|
|
# profile_update PUT /profile/update(.:format) profile#update
|
2012-12-02 11:29:24 +00:00
|
|
|
describe ProfilesController, "routing" do
|
2012-09-16 08:21:46 +00:00
|
|
|
it "to #account" do
|
2012-12-02 11:29:24 +00:00
|
|
|
get("/profile/account").should route_to('profiles#account')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "to #history" do
|
2012-12-02 11:29:24 +00:00
|
|
|
get("/profile/history").should route_to('profiles#history')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "to #reset_private_token" do
|
2012-12-02 11:29:24 +00:00
|
|
|
put("/profile/reset_private_token").should route_to('profiles#reset_private_token')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "to #show" do
|
2012-12-02 11:29:24 +00:00
|
|
|
get("/profile").should route_to('profiles#show')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "to #design" do
|
2012-12-02 11:29:24 +00:00
|
|
|
get("/profile/design").should route_to('profiles#design')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# keys GET /keys(.:format) keys#index
|
|
|
|
# POST /keys(.:format) keys#create
|
|
|
|
# new_key GET /keys/new(.:format) keys#new
|
|
|
|
# edit_key GET /keys/:id/edit(.:format) keys#edit
|
|
|
|
# key GET /keys/:id(.:format) keys#show
|
|
|
|
# PUT /keys/:id(.:format) keys#update
|
|
|
|
# DELETE /keys/:id(.:format) keys#destroy
|
2013-06-24 15:24:14 +00:00
|
|
|
describe Profiles::KeysController, "routing" do
|
2012-09-16 08:21:46 +00:00
|
|
|
it "to #index" do
|
2013-06-24 15:24:14 +00:00
|
|
|
get("/profile/keys").should route_to('profiles/keys#index')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "to #create" do
|
2013-06-24 15:24:14 +00:00
|
|
|
post("/profile/keys").should route_to('profiles/keys#create')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "to #new" do
|
2013-06-24 15:24:14 +00:00
|
|
|
get("/profile/keys/new").should route_to('profiles/keys#new')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "to #edit" do
|
2013-06-24 15:24:14 +00:00
|
|
|
get("/profile/keys/1/edit").should route_to('profiles/keys#edit', id: '1')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "to #show" do
|
2013-06-24 15:24:14 +00:00
|
|
|
get("/profile/keys/1").should route_to('profiles/keys#show', id: '1')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "to #update" do
|
2013-06-24 15:24:14 +00:00
|
|
|
put("/profile/keys/1").should route_to('profiles/keys#update', id: '1')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "to #destroy" do
|
2013-06-24 15:24:14 +00:00
|
|
|
delete("/profile/keys/1").should route_to('profiles/keys#destroy', id: '1')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-01-27 11:20:23 +00:00
|
|
|
# dashboard GET /dashboard(.:format) dashboard#show
|
2012-09-16 08:21:46 +00:00
|
|
|
# dashboard_issues GET /dashboard/issues(.:format) dashboard#issues
|
|
|
|
# dashboard_merge_requests GET /dashboard/merge_requests(.:format) dashboard#merge_requests
|
2013-01-27 11:20:23 +00:00
|
|
|
# root / dashboard#show
|
2012-09-16 08:21:46 +00:00
|
|
|
describe DashboardController, "routing" do
|
|
|
|
it "to #index" do
|
2013-01-27 11:20:23 +00:00
|
|
|
get("/dashboard").should route_to('dashboard#show')
|
|
|
|
get("/").should route_to('dashboard#show')
|
2012-09-16 08:21:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "to #issues" do
|
|
|
|
get("/dashboard/issues").should route_to('dashboard#issues')
|
|
|
|
end
|
|
|
|
|
|
|
|
it "to #merge_requests" do
|
|
|
|
get("/dashboard/merge_requests").should route_to('dashboard#merge_requests')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# new_user_session GET /users/sign_in(.:format) devise/sessions#new
|
|
|
|
# user_session POST /users/sign_in(.:format) devise/sessions#create
|
|
|
|
# destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
|
|
|
|
# user_omniauth_authorize /users/auth/:provider(.:format) omniauth_callbacks#passthru
|
|
|
|
# user_omniauth_callback /users/auth/:action/callback(.:format) omniauth_callbacks#(?-mix:(?!))
|
|
|
|
# user_password POST /users/password(.:format) devise/passwords#create
|
|
|
|
# new_user_password GET /users/password/new(.:format) devise/passwords#new
|
|
|
|
# edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
|
|
|
|
# PUT /users/password(.:format) devise/passwords#update
|
|
|
|
describe "Authentication", "routing" do
|
|
|
|
# pending
|
|
|
|
end
|