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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-18 15:11:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-18 15:11:19 +0300
commitfba018726310be5fdf4014f18debbbabde19a8cd (patch)
treeb335c53c751983139d07f0e7b1fa757a19e1c5db /spec/lib/sidebars
parent3b4c0d27d5ad32fecdcc95e86bf919fc13830c5b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/sidebars')
-rw-r--r--spec/lib/sidebars/projects/menus/packages_registries_menu_spec.rb32
1 files changed, 10 insertions, 22 deletions
diff --git a/spec/lib/sidebars/projects/menus/packages_registries_menu_spec.rb b/spec/lib/sidebars/projects/menus/packages_registries_menu_spec.rb
index c9a648627e9..d6807451a25 100644
--- a/spec/lib/sidebars/projects/menus/packages_registries_menu_spec.rb
+++ b/spec/lib/sidebars/projects/menus/packages_registries_menu_spec.rb
@@ -124,34 +124,22 @@ RSpec.describe Sidebars::Projects::Menus::PackagesRegistriesMenu do
describe 'Infrastructure Registry' do
let(:item_id) { :infrastructure_registry }
- context 'when feature flag :infrastructure_registry_page is enabled' do
- it 'the menu item is added to list of menu items' do
- stub_feature_flags(infrastructure_registry_page: true)
-
- is_expected.not_to be_nil
- end
-
- context 'when config package setting is disabled' do
- it 'does not add the menu item to the list' do
- stub_config(packages: { enabled: false })
-
- is_expected.to be_nil
- end
- end
+ it 'the menu item is added to list of menu items' do
+ is_expected.not_to be_nil
+ end
- context 'when user cannot read packages' do
- let(:user) { nil }
+ context 'when config package setting is disabled' do
+ it 'does not add the menu item to the list' do
+ stub_config(packages: { enabled: false })
- it 'does not add the menu item to the list' do
- is_expected.to be_nil
- end
+ is_expected.to be_nil
end
end
- context 'when feature flag :infrastructure_registry_page is disabled' do
- it 'does not add the menu item to the list' do
- stub_feature_flags(infrastructure_registry_page: false)
+ context 'when user cannot read packages' do
+ let(:user) { nil }
+ it 'does not add the menu item to the list' do
is_expected.to be_nil
end
end