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
iv
gitlab-ce
Commits
31e3dc60
Commit
31e3dc60
authored
Jan 09, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix routing specs
parent
80e79f33
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
app/views/hooks/_data_ex.html.erb
app/views/hooks/_data_ex.html.erb
+1
-1
spec/routing/project_routing_spec.rb
spec/routing/project_routing_spec.rb
+6
-6
No files found.
app/views/hooks/_data_ex.html.erb
View file @
31e3dc60
...
...
@@ -38,6 +38,6 @@
};
eos
%>
<div
class=
"
white
"
>
<div
class=
"
<%=
user_color_scheme_class
%>
"
>
<%=
raw
Pygments
::
Lexer
[
:js
].
highlight
(
data_ex_str
)
%>
</div>
spec/routing/project_routing_spec.rb
View file @
31e3dc60
...
...
@@ -191,17 +191,17 @@ describe ProtectedBranchesController, "routing" do
end
end
# switch_project_refs GET /:project_id/switch(.:format) refs#switch
# logs_tree_project_ref GET /:project_id/:id/logs_tree(.:format) refs#logs_tree
# logs_file_project_ref GET /:project_id/:id/logs_tree/:path(.:format) refs#logs_tree
# switch_project_refs GET /:project_id/
refs/
switch(.:format) refs#switch
# logs_tree_project_ref GET /:project_id/
refs/
:id/logs_tree(.:format) refs#logs_tree
# logs_file_project_ref GET /:project_id/
refs/
:id/logs_tree/:path(.:format) refs#logs_tree
describe
RefsController
,
"routing"
do
it
"to #switch"
do
get
(
"/gitlabhq/switch"
).
should
route_to
(
'refs#switch'
,
project_id:
'gitlabhq'
)
get
(
"/gitlabhq/
refs/
switch"
).
should
route_to
(
'refs#switch'
,
project_id:
'gitlabhq'
)
end
it
"to #logs_tree"
do
get
(
"/gitlabhq/stable/logs_tree"
).
should
route_to
(
'refs#logs_tree'
,
project_id:
'gitlabhq'
,
id:
'stable'
)
get
(
"/gitlabhq/stable/logs_tree/foo/bar/baz"
).
should
route_to
(
'refs#logs_tree'
,
project_id:
'gitlabhq'
,
id:
'stable'
,
path:
'foo/bar/baz'
)
get
(
"/gitlabhq/
refs/
stable/logs_tree"
).
should
route_to
(
'refs#logs_tree'
,
project_id:
'gitlabhq'
,
id:
'stable'
)
get
(
"/gitlabhq/
refs/
stable/logs_tree/foo/bar/baz"
).
should
route_to
(
'refs#logs_tree'
,
project_id:
'gitlabhq'
,
id:
'stable'
,
path:
'foo/bar/baz'
)
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