summaryrefslogtreecommitdiff
path: root/spec/features/groups_spec.rb
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-09-05 10:03:43 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-04 22:46:49 +0200
commit376a8c66c1ca8ee2a95255d21c9d55ce006ab655 (patch)
treed089b7830874490529380509caa830266c1d13e4 /spec/features/groups_spec.rb
parent2eac1537ad907f2f7e628788cf980cb7e48d3f56 (diff)
downloadgitlab-ce-376a8c66c1ca8ee2a95255d21c9d55ce006ab655.tar.gz
Remove the subgroups path on a group
Diffstat (limited to 'spec/features/groups_spec.rb')
-rw-r--r--spec/features/groups_spec.rb22
1 files changed, 9 insertions, 13 deletions
diff --git a/spec/features/groups_spec.rb b/spec/features/groups_spec.rb
index 4ec2e7e6012..493dd551d25 100644
--- a/spec/features/groups_spec.rb
+++ b/spec/features/groups_spec.rb
@@ -90,7 +90,10 @@ feature 'Group' do
context 'as admin' do
before do
- visit subgroups_group_path(group)
+ visit group_path(group)
+
+ pending('use the new subgroup button')
+
click_link 'New Subgroup'
end
@@ -111,7 +114,10 @@ feature 'Group' do
sign_out(:user)
sign_in(user)
- visit subgroups_group_path(group)
+ visit group_path(group)
+
+ pending('use the new subgroup button')
+
click_link 'New Subgroup'
fill_in 'Group path', with: 'bar'
click_button 'Create group'
@@ -120,16 +126,6 @@ feature 'Group' do
expect(page).to have_content("Group 'bar' was successfully created.")
end
end
-
- context 'when nested group feature is disabled' do
- it 'renders 404' do
- allow(Group).to receive(:supports_nested_groups?).and_return(false)
-
- visit subgroups_group_path(group)
-
- expect(page.status_code).to eq(404)
- end
- end
end
it 'checks permissions to avoid exposing groups by parent_id' do
@@ -213,8 +209,8 @@ feature 'Group' do
let!(:path) { group_path(group) }
it 'has nested groups tab with nested groups inside' do
+ pending('the child should be visible on the show page')
visit path
- click_link 'Subgroups'
expect(page).to have_content(nested_group.name)
end