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

Fix routing spec for group controller

parent 08d21fe8
Branches
Tags
1 merge request!7327Refactor routing constraints
Pipeline #
Loading
@@ -266,13 +266,13 @@ describe "Groups", "routing" do
Loading
@@ -266,13 +266,13 @@ describe "Groups", "routing" do
end end
   
it "also display group#show on the short path" do it "also display group#show on the short path" do
allow(Group).to receive(:find_by_path).and_return(true) allow(Group).to receive(:find_by).and_return(true)
   
expect(get('/1')).to route_to('groups#show', id: '1') expect(get('/1')).to route_to('groups#show', id: '1')
end end
   
it "also display group#show with dot in the path" do it "also display group#show with dot in the path" do
allow(Group).to receive(:find_by_path).and_return(true) allow(Group).to receive(:find_by).and_return(true)
   
expect(get('/group.with.dot')).to route_to('groups#show', id: 'group.with.dot') expect(get('/group.with.dot')).to route_to('groups#show', id: 'group.with.dot')
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment