Skip to content
Snippets Groups Projects
Commit fd61e3e9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge branch 'routing-for-groups' into 'master'

parents da4c13f1 61ef72e5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -327,5 +327,7 @@ Gitlab::Application.routes.draw do
end
end
 
get ':id' => "groups#show", constraints: {id: /(?:[^.]|\.(?!atom$))+/, format: /atom/}
root to: "dashboard#show"
end
Loading
Loading
@@ -238,3 +238,14 @@ end
describe "Authentication", "routing" do
# pending
end
describe "Groups", "routing" do
it "to #show" do
get("/groups/1").should route_to('groups#show', id: '1')
end
it "also display group#show on the short path" do
get("/1").should route_to('groups#show', id: '1')
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment