Fix routing specs
This commit is contained in:
parent
80e79f33af
commit
31e3dc600a
2 changed files with 7 additions and 7 deletions
|
@ -38,6 +38,6 @@
|
||||||
};
|
};
|
||||||
eos
|
eos
|
||||||
%>
|
%>
|
||||||
<div class="white">
|
<div class="<%= user_color_scheme_class%>">
|
||||||
<%= raw Pygments::Lexer[:js].highlight(data_ex_str) %>
|
<%= raw Pygments::Lexer[:js].highlight(data_ex_str) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -191,17 +191,17 @@ describe ProtectedBranchesController, "routing" do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# switch_project_refs GET /:project_id/switch(.:format) refs#switch
|
# switch_project_refs GET /:project_id/refs/switch(.:format) refs#switch
|
||||||
# logs_tree_project_ref GET /:project_id/:id/logs_tree(.:format) refs#logs_tree
|
# logs_tree_project_ref GET /:project_id/refs/:id/logs_tree(.:format) refs#logs_tree
|
||||||
# logs_file_project_ref GET /:project_id/:id/logs_tree/:path(.:format) refs#logs_tree
|
# logs_file_project_ref GET /:project_id/refs/:id/logs_tree/:path(.:format) refs#logs_tree
|
||||||
describe RefsController, "routing" do
|
describe RefsController, "routing" do
|
||||||
it "to #switch" 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
|
end
|
||||||
|
|
||||||
it "to #logs_tree" do
|
it "to #logs_tree" do
|
||||||
get("/gitlabhq/stable/logs_tree").should route_to('refs#logs_tree', project_id: 'gitlabhq', id: 'stable')
|
get("/gitlabhq/refs/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/foo/bar/baz").should route_to('refs#logs_tree', project_id: 'gitlabhq', id: 'stable', path: 'foo/bar/baz')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue