diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-07-02 08:38:38 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-05 10:05:46 -0700 |
commit | 862b0289716bafa174dd765950f2854ac0419fc7 (patch) | |
tree | dc1ded707fd2fd981d37033cb40bf0d5b33c2d09 | |
parent | b40d4ecdb992b9dad2f222e67e5ab54d8ed38e5d (diff) | |
download | gitlab-ce-862b0289716bafa174dd765950f2854ac0419fc7.tar.gz |
Apply recomended changes from merge coach
-rw-r--r-- | spec/features/groups/show_spec.rb | 6 |
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 |