summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-12-26 12:51:48 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-12-26 14:19:42 +0200
commit10de4e3bb612a529480c93da53849d95e98a8633 (patch)
treec2aaa48b506a8e9318f504f57aad9fc43aabc251 /spec
parent9410f215eab0ba49051d2a00f0b4174f5dc13a6f (diff)
downloadgitlab-ce-10de4e3bb612a529480c93da53849d95e98a8633.tar.gz
Show nested groups tab on group page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/features/groups_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/features/groups_spec.rb b/spec/features/groups_spec.rb
index 4b19886274e..d865a71f04b 100644
--- a/spec/features/groups_spec.rb
+++ b/spec/features/groups_spec.rb
@@ -107,4 +107,17 @@ feature 'Group', feature: true do
expect(page).to have_css('.group-home-desc a[rel]')
end
end
+
+ describe 'group page with nested groups', js: true do
+ let!(:group) { create(:group) }
+ let!(:nested_group) { create(:group, parent: group) }
+ let!(:path) { group_path(group) }
+
+ it 'has nested groups tab with nested groups inside' do
+ visit path
+ click_link 'Nested Groups'
+
+ expect(page).to have_content(nested_group.full_name)
+ end
+ end
end