summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2019-05-01 11:17:24 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2019-05-01 11:17:24 +0000
commite0074780d6d90fee986e3cc722599f1804ade07f (patch)
treef9b9278bb058527dafc06ffcf3dd53d506ad2417
parentb75e92a1b8e6100e4c099fc2f941c6e73f5632e6 (diff)
parentc948babf7088e26ae025c1476022699bfe9fb107 (diff)
downloadgitlab-ce-e0074780d6d90fee986e3cc722599f1804ade07f.tar.gz
Merge branch 'add-specs-for-group-routing-spec' into 'master'
Add specs to group routing spec See merge request gitlab-org/gitlab-ce!27705
-rw-r--r--spec/routing/group_routing_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/routing/group_routing_spec.rb b/spec/routing/group_routing_spec.rb
index 53271550e8b..00ca394a50b 100644
--- a/spec/routing/group_routing_spec.rb
+++ b/spec/routing/group_routing_spec.rb
@@ -133,5 +133,19 @@ describe "Groups", "routing" do
let(:resource) { create(:group, parent: parent, path: 'activity') }
end
end
+
+ describe 'subgroup "boards"' do
+ it 'shows group show page' do
+ allow(Group).to receive(:find_by_full_path).with('gitlabhq/boards', any_args).and_return(true)
+
+ expect(get('/groups/gitlabhq/boards')).to route_to('groups#show', id: 'gitlabhq/boards')
+ end
+
+ it 'shows boards index page' do
+ allow(Group).to receive(:find_by_full_path).with('gitlabhq', any_args).and_return(true)
+
+ expect(get('/groups/gitlabhq/-/boards')).to route_to('groups/boards#index', group_id: 'gitlabhq')
+ end
+ end
end
end