diff options
Diffstat (limited to 'spec/lib/sidebars/groups')
-rw-r--r-- | spec/lib/sidebars/groups/menus/packages_registries_menu_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/sidebars/groups/menus/packages_registries_menu_spec.rb b/spec/lib/sidebars/groups/menus/packages_registries_menu_spec.rb index c5666724acf..ce368ad5bd6 100644 --- a/spec/lib/sidebars/groups/menus/packages_registries_menu_spec.rb +++ b/spec/lib/sidebars/groups/menus/packages_registries_menu_spec.rb @@ -207,6 +207,16 @@ RSpec.describe Sidebars::Groups::Menus::PackagesRegistriesMenu do it_behaves_like 'the menu entry is available' end + + context 'when config harbor registry setting is not activated' do + before do + harbor_integration.update!(active: false) + end + + let(:harbor_registry_enabled) { true } + + it_behaves_like 'the menu entry is not available' + end end end |