summaryrefslogtreecommitdiff
path: root/spec/features/groups/show_spec.rb
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-07-02 08:38:38 -0700
committerFabio Papa <fabtheman@gmail.com>2019-07-19 13:20:16 -0700
commitd287a9b719b8984aa3422453a722f8a13772a3c8 (patch)
tree495606332ef14ebb986074277eacb8f47e070d22 /spec/features/groups/show_spec.rb
parent3f92f3fa10b7f86295484872e617e2a4fb997900 (diff)
downloadgitlab-ce-d287a9b719b8984aa3422453a722f8a13772a3c8.tar.gz
Apply recomended changes from merge coach
Diffstat (limited to 'spec/features/groups/show_spec.rb')
-rw-r--r--spec/features/groups/show_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/features/groups/show_spec.rb b/spec/features/groups/show_spec.rb
index 9cf5e7f9bb6..bed998a0859 100644
--- a/spec/features/groups/show_spec.rb
+++ b/spec/features/groups/show_spec.rb
@@ -78,10 +78,11 @@ 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
@@ -90,10 +91,11 @@ 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