Welcome to mirror list, hosted at ThFree Co, Russian Federation.

routing_spec.rb « routing « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 946ef7c28cb18de515088701767f9aa4d0cbaa39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
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

# gitlab_api /api         API::API
#            /:path       Grack
describe "Mounted Apps", "routing" do
  it "to API" do
    get("/api/issues").should be_routable
  end

  it "to Grack" do
    get("/gitlab/gitlabhq.git").should be_routable
  end
end

#     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

#              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
#    help_raketasks GET    /help/raketasks(.:format)    help#raketasks
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

  it "to #raketasks" do
    get("/help/raketasks").should route_to('help#raketasks')
  end
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
describe ProfilesController, "routing" do
  it "to #account" do
    get("/profile/account").should route_to('profiles#account')
  end

  it "to #history" do
    get("/profile/history").should route_to('profiles#history')
  end

  it "to #reset_private_token" do
    put("/profile/reset_private_token").should route_to('profiles#reset_private_token')
  end

  it "to #show" do
    get("/profile").should route_to('profiles#show')
  end

  it "to #design" do
    get("/profile/design").should route_to('profiles#design')
  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
describe Profiles::KeysController, "routing" do
  it "to #index" do
    get("/profile/keys").should route_to('profiles/keys#index')
  end

  it "to #create" do
    post("/profile/keys").should route_to('profiles/keys#create')
  end

  it "to #new" do
    get("/profile/keys/new").should route_to('profiles/keys#new')
  end

  it "to #edit" do
    get("/profile/keys/1/edit").should route_to('profiles/keys#edit', id: '1')
  end

  it "to #show" do
    get("/profile/keys/1").should route_to('profiles/keys#show', id: '1')
  end

  it "to #update" do
    put("/profile/keys/1").should route_to('profiles/keys#update', id: '1')
  end

  it "to #destroy" do
    delete("/profile/keys/1").should route_to('profiles/keys#destroy', id: '1')
  end
end

#                dashboard GET    /dashboard(.:format)                dashboard#show
#         dashboard_issues GET    /dashboard/issues(.:format)         dashboard#issues
# dashboard_merge_requests GET    /dashboard/merge_requests(.:format) dashboard#merge_requests
#                     root        /                                   dashboard#show
describe DashboardController, "routing" do
  it "to #index" do
    get("/dashboard").should route_to('dashboard#show')
    get("/").should route_to('dashboard#show')
  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