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/features/projects/new_project_spec.rb')
-rw-r--r--spec/features/projects/new_project_spec.rb20
1 files changed, 5 insertions, 15 deletions
diff --git a/spec/features/projects/new_project_spec.rb b/spec/features/projects/new_project_spec.rb
index a3cbb86da2c..a0df18ea6f3 100644
--- a/spec/features/projects/new_project_spec.rb
+++ b/spec/features/projects/new_project_spec.rb
@@ -3,8 +3,6 @@
require 'spec_helper'
RSpec.describe 'New project', :js, feature_category: :groups_and_projects do
- include Features::TopNavSpecHelpers
-
before do
stub_application_setting(import_sources: Gitlab::ImportSources.values)
end
@@ -81,21 +79,13 @@ RSpec.describe 'New project', :js, feature_category: :groups_and_projects do
expect(page).to have_content 'Other visibility settings have been disabled by the administrator.'
end
- context 'with prevent_visibility_restriction feature flag off' do
- before do
- stub_feature_flags(prevent_visibility_restriction: false)
- end
+ it 'shows a message if all levels are restricted' do
+ stub_application_setting(restricted_visibility_levels: Gitlab::VisibilityLevel.values)
- it 'shows a message if all levels are restricted' do
- Gitlab::CurrentSettings.update!(
- restricted_visibility_levels: Gitlab::VisibilityLevel.values
- )
-
- visit new_project_path
- click_link 'Create blank project'
+ visit new_project_path
+ click_link 'Create blank project'
- expect(page).to have_content 'Visibility settings have been disabled by the administrator.'
- end
+ expect(page).to have_content 'Visibility settings have been disabled by the administrator.'
end
end