Commit 20c8d6e6442e5a339fbb47f844e85c1a739e9939
Exists in
master
and in
4 other branches
Merge pull request #2222 from jojosch/add-test-help-raketasks
add help/raketasks to routing spec and search autocomplete
Showing
2 changed files
with
6 additions
and
0 deletions
Show diff stats
app/helpers/application_helper.rb
@@ -95,6 +95,7 @@ module ApplicationHelper | @@ -95,6 +95,7 @@ module ApplicationHelper | ||
95 | { label: "API Help", url: help_api_path }, | 95 | { label: "API Help", url: help_api_path }, |
96 | { label: "Markdown Help", url: help_markdown_path }, | 96 | { label: "Markdown Help", url: help_markdown_path }, |
97 | { label: "SSH Keys Help", url: help_ssh_path }, | 97 | { label: "SSH Keys Help", url: help_ssh_path }, |
98 | + { label: "Gitlab Rake Tasks Help", url: help_raketasks_path }, | ||
98 | ] | 99 | ] |
99 | 100 | ||
100 | project_nav = [] | 101 | project_nav = [] |
spec/routing/routing_spec.rb
@@ -33,6 +33,7 @@ end | @@ -33,6 +33,7 @@ end | ||
33 | # help_system_hooks GET /help/system_hooks(.:format) help#system_hooks | 33 | # help_system_hooks GET /help/system_hooks(.:format) help#system_hooks |
34 | # help_markdown GET /help/markdown(.:format) help#markdown | 34 | # help_markdown GET /help/markdown(.:format) help#markdown |
35 | # help_ssh GET /help/ssh(.:format) help#ssh | 35 | # help_ssh GET /help/ssh(.:format) help#ssh |
36 | +# help_raketasks GET /help/raketasks(.:format) help#raketasks | ||
36 | describe HelpController, "routing" do | 37 | describe HelpController, "routing" do |
37 | it "to #index" do | 38 | it "to #index" do |
38 | get("/help").should route_to('help#index') | 39 | get("/help").should route_to('help#index') |
@@ -65,6 +66,10 @@ describe HelpController, "routing" do | @@ -65,6 +66,10 @@ describe HelpController, "routing" do | ||
65 | it "to #ssh" do | 66 | it "to #ssh" do |
66 | get("/help/ssh").should route_to('help#ssh') | 67 | get("/help/ssh").should route_to('help#ssh') |
67 | end | 68 | end |
69 | + | ||
70 | + it "to #raketasks" do | ||
71 | + get("/help/raketasks").should route_to('help#raketasks') | ||
72 | + end | ||
68 | end | 73 | end |
69 | 74 | ||
70 | # errors_githost GET /errors/githost(.:format) errors#githost | 75 | # errors_githost GET /errors/githost(.:format) errors#githost |