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:
Diffstat (limited to 'spec/views/groups/new.html.haml_spec.rb')
-rw-r--r--spec/views/groups/new.html.haml_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/views/groups/new.html.haml_spec.rb b/spec/views/groups/new.html.haml_spec.rb
index 8b12cc42a88..5c7378e8dc7 100644
--- a/spec/views/groups/new.html.haml_spec.rb
+++ b/spec/views/groups/new.html.haml_spec.rb
@@ -25,4 +25,15 @@ RSpec.describe 'groups/new.html.haml' do
expect(rendered).not_to have_checked_field('Just me')
end
end
+
+ context 'when a subgroup' do
+ let_it_be(:group) { create(:group, :nested) }
+
+ it 'renders the visibility level section' do
+ expect(rendered).to have_content('Visibility level')
+ expect(rendered).to have_field('Private')
+ expect(rendered).to have_field('Internal')
+ expect(rendered).to have_field('Public')
+ end
+ end
end