Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
d2c3c98e
Commit
d2c3c98e
authored
Nov 14, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Routing specs for fork projects
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
e08e405a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
spec/routing/project_routing_spec.rb
spec/routing/project_routing_spec.rb
+10
-5
No files found.
spec/routing/project_routing_spec.rb
View file @
d2c3c98e
...
...
@@ -55,7 +55,6 @@ end
# projects POST /projects(.:format) projects#create
# new_project GET /projects/new(.:format) projects#new
# fork_project POST /:id/fork(.:format) projects#fork
# files_project GET /:id/files(.:format) projects#files
# edit_project GET /:id/edit(.:format) projects#edit
# project GET /:id(.:format) projects#show
...
...
@@ -70,10 +69,6 @@ describe ProjectsController, "routing" do
get
(
"/projects/new"
).
should
route_to
(
'projects#new'
)
end
it
"to #fork"
do
post
(
"/gitlab/gitlabhq/fork"
).
should
route_to
(
'projects#fork'
,
id:
'gitlab/gitlabhq'
)
end
it
"to #edit"
do
get
(
"/gitlab/gitlabhq/edit"
).
should
route_to
(
'projects#edit'
,
id:
'gitlab/gitlabhq'
)
end
...
...
@@ -462,3 +457,13 @@ describe Projects::GraphsController, "routing" do
get
(
"/gitlab/gitlabhq/graphs/master"
).
should
route_to
(
'projects/graphs#show'
,
project_id:
'gitlab/gitlabhq'
,
id:
'master'
)
end
end
describe
Projects
::
ForksController
,
"routing"
do
it
"to #new"
do
get
(
"/gitlab/gitlabhq/fork/new"
).
should
route_to
(
"projects/forks#new"
,
project_id:
'gitlab/gitlabhq'
)
end
it
"to #create"
do
post
(
"/gitlab/gitlabhq/fork"
).
should
route_to
(
"projects/forks#create"
,
project_id:
'gitlab/gitlabhq'
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment