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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
20c8d6e6
Commit
20c8d6e6
authored
Dec 10, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2222 from jojosch/add-test-help-raketasks
add help/raketasks to routing spec and search autocomplete
parents
d476bc01
3a481777
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+1
-0
spec/routing/routing_spec.rb
spec/routing/routing_spec.rb
+5
-0
No files found.
app/helpers/application_helper.rb
View file @
20c8d6e6
...
@@ -95,6 +95,7 @@ module ApplicationHelper
...
@@ -95,6 +95,7 @@ module ApplicationHelper
{
label:
"API Help"
,
url:
help_api_path
},
{
label:
"API Help"
,
url:
help_api_path
},
{
label:
"Markdown Help"
,
url:
help_markdown_path
},
{
label:
"Markdown Help"
,
url:
help_markdown_path
},
{
label:
"SSH Keys Help"
,
url:
help_ssh_path
},
{
label:
"SSH Keys Help"
,
url:
help_ssh_path
},
{
label:
"Gitlab Rake Tasks Help"
,
url:
help_raketasks_path
},
]
]
project_nav
=
[]
project_nav
=
[]
...
...
spec/routing/routing_spec.rb
View file @
20c8d6e6
...
@@ -33,6 +33,7 @@ end
...
@@ -33,6 +33,7 @@ end
# help_system_hooks GET /help/system_hooks(.:format) help#system_hooks
# help_system_hooks GET /help/system_hooks(.:format) help#system_hooks
# help_markdown GET /help/markdown(.:format) help#markdown
# help_markdown GET /help/markdown(.:format) help#markdown
# help_ssh GET /help/ssh(.:format) help#ssh
# help_ssh GET /help/ssh(.:format) help#ssh
# help_raketasks GET /help/raketasks(.:format) help#raketasks
describe
HelpController
,
"routing"
do
describe
HelpController
,
"routing"
do
it
"to #index"
do
it
"to #index"
do
get
(
"/help"
).
should
route_to
(
'help#index'
)
get
(
"/help"
).
should
route_to
(
'help#index'
)
...
@@ -65,6 +66,10 @@ describe HelpController, "routing" do
...
@@ -65,6 +66,10 @@ describe HelpController, "routing" do
it
"to #ssh"
do
it
"to #ssh"
do
get
(
"/help/ssh"
).
should
route_to
(
'help#ssh'
)
get
(
"/help/ssh"
).
should
route_to
(
'help#ssh'
)
end
end
it
"to #raketasks"
do
get
(
"/help/raketasks"
).
should
route_to
(
'help#raketasks'
)
end
end
end
# errors_githost GET /errors/githost(.:format) errors#githost
# errors_githost GET /errors/githost(.:format) errors#githost
...
...
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