Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-12-26 13:51:48 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-12-26 15:19:42 +0300
commit10de4e3bb612a529480c93da53849d95e98a8633 (patch)
treec2aaa48b506a8e9318f504f57aad9fc43aabc251 /spec/features/groups_spec.rb
parent9410f215eab0ba49051d2a00f0b4174f5dc13a6f (diff)
Show nested groups tab on group page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/features/groups_spec.rb')
-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