Commit 20c8d6e6442e5a339fbb47f844e85c1a739e9939

Authored by Riyad Preukschas
2 parents d476bc01 3a481777

Merge pull request #2222 from jojosch/add-test-help-raketasks

add help/raketasks to routing spec and search autocomplete
app/helpers/application_helper.rb
... ... @@ -95,6 +95,7 @@ module ApplicationHelper
95 95 { label: "API Help", url: help_api_path },
96 96 { label: "Markdown Help", url: help_markdown_path },
97 97 { label: "SSH Keys Help", url: help_ssh_path },
  98 + { label: "Gitlab Rake Tasks Help", url: help_raketasks_path },
98 99 ]
99 100  
100 101 project_nav = []
... ...
spec/routing/routing_spec.rb
... ... @@ -33,6 +33,7 @@ end
33 33 # help_system_hooks GET /help/system_hooks(.:format) help#system_hooks
34 34 # help_markdown GET /help/markdown(.:format) help#markdown
35 35 # help_ssh GET /help/ssh(.:format) help#ssh
  36 +# help_raketasks GET /help/raketasks(.:format) help#raketasks
36 37 describe HelpController, "routing" do
37 38 it "to #index" do
38 39 get("/help").should route_to('help#index')
... ... @@ -65,6 +66,10 @@ describe HelpController, "routing" do
65 66 it "to #ssh" do
66 67 get("/help/ssh").should route_to('help#ssh')
67 68 end
  69 +
  70 + it "to #raketasks" do
  71 + get("/help/raketasks").should route_to('help#raketasks')
  72 + end
68 73 end
69 74  
70 75 # errors_githost GET /errors/githost(.:format) errors#githost
... ...