summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-07-01 09:17:26 -0700
committerFabio Papa <fabtheman@gmail.com>2019-07-19 12:06:57 -0700
commitc8b5556eb8d3594df9e69fd16517c23cf098a32f (patch)
treedba5daa7f199ac8e64c34019456e9ce4897639b8
parent27ebf9392ac83cb020803b88ff7ca69887c36753 (diff)
downloadgitlab-ce-c8b5556eb8d3594df9e69fd16517c23cf098a32f.tar.gz
Clean up the show_spec examples previously added
-rw-r--r--spec/features/groups/show_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/features/groups/show_spec.rb b/spec/features/groups/show_spec.rb
index bed998a0859..9cf5e7f9bb6 100644
--- a/spec/features/groups/show_spec.rb
+++ b/spec/features/groups/show_spec.rb
@@ -78,11 +78,10 @@ describe 'Group show page' do
context 'when subgroups are supported', :nested_groups do
before do
allow(Group).to receive(:supports_nested_objects?) { true }
+ visit path
end
it 'allows creating subgroups' do
- visit path
-
expect(page)
.to have_css("li[data-text='New subgroup']", visible: false)
end
@@ -91,11 +90,10 @@ describe 'Group show page' do
context 'when subgroups are not supported' do
before do
allow(Group).to receive(:supports_nested_objects?) { false }
+ visit path
end
it 'does not allow creating subgroups' do
- visit path
-
expect(page)
.not_to have_selector("li[data-text='New subgroup']", visible: false)
end