diff options
Diffstat (limited to 'spec/lib/sidebars')
-rw-r--r-- | spec/lib/sidebars/projects/menus/packages_registries_menu_spec.rb | 32 |
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 |