summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-16 11:44:34 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-16 11:44:34 +0000
commit94c9dc514c54badbefb5e4e45bcf3650c0d0b83d (patch)
tree597d3198e41468b0901caff83f1cd9c60f9c0622 /spec
parent59fd45557799fd62661750628277290d2b18da18 (diff)
parentc48f7153181eab0d872d84b1c00e83cec5f2f046 (diff)
downloadgitlab-ce-94c9dc514c54badbefb5e4e45bcf3650c0d0b83d.tar.gz
Merge branch 'dz-fix-group-with-dot' into 'master'
Fix 404 when group path has dot in the name Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23401 See merge request !6919
Diffstat (limited to 'spec')
-rw-r--r--spec/routing/routing_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb
index 0ee1c811dfb..488dc1a63b0 100644
--- a/spec/routing/routing_spec.rb
+++ b/spec/routing/routing_spec.rb
@@ -270,6 +270,12 @@ describe "Groups", "routing" do
expect(get('/1')).to route_to('groups#show', id: '1')
end
+
+ it "also display group#show with dot in the path" do
+ allow(Group).to receive(:find_by_path).and_return(true)
+
+ expect(get('/group.with.dot')).to route_to('groups#show', id: 'group.with.dot')
+ end
end
describe HealthCheckController, 'routing' do