Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-07-02 18:38:38 +0300
committerFabio Papa <fabtheman@gmail.com>2019-07-19 22:06:57 +0300
commit85d0440d56f65b1f62de7f6c6a07eccd2c28256c (patch)
tree295f19beda27a2c995169f89ba278fd3bb3cfdbd /spec/features/groups
parentf940a4a64ed7dde32228233897f9ad713151fb6a (diff)
Apply recomended changes from merge coach
Diffstat (limited to 'spec/features/groups')
-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