diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-07-01 19:17:26 +0300 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 22:06:56 +0300 |
commit | fe4a88be03f4e2e9a4648f5b9431d0011e191be3 (patch) | |
tree | 61329f0c0d76c2fffe061f69e85c2116973237b3 /spec/features/groups/show_spec.rb | |
parent | 7980011e03691ac46a7c59014bb3f0ae13d3dbf8 (diff) |
Clean up the show_spec examples previously added
Diffstat (limited to 'spec/features/groups/show_spec.rb')
-rw-r--r-- | spec/features/groups/show_spec.rb | 6 |
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 |