diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /spec/lib/sidebars/projects/menus/project_information_menu_spec.rb | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'spec/lib/sidebars/projects/menus/project_information_menu_spec.rb')
-rw-r--r-- | spec/lib/sidebars/projects/menus/project_information_menu_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/lib/sidebars/projects/menus/project_information_menu_spec.rb b/spec/lib/sidebars/projects/menus/project_information_menu_spec.rb index b50bf0f4bf1..748796bc7ee 100644 --- a/spec/lib/sidebars/projects/menus/project_information_menu_spec.rb +++ b/spec/lib/sidebars/projects/menus/project_information_menu_spec.rb @@ -8,6 +8,20 @@ RSpec.describe Sidebars::Projects::Menus::ProjectInformationMenu do let(:user) { project.owner } let(:context) { Sidebars::Projects::Context.new(current_user: user, container: project) } + describe '#container_html_options' do + subject { described_class.new(context).container_html_options } + + specify { is_expected.to match(hash_including(class: 'shortcuts-project-information has-sub-items')) } + + context 'when feature flag :sidebar_refactor is disabled' do + before do + stub_feature_flags(sidebar_refactor: false) + end + + specify { is_expected.to match(hash_including(class: 'shortcuts-project rspec-project-link has-sub-items')) } + end + end + describe 'Menu Items' do subject { described_class.new(context).renderable_items.index { |e| e.item_id == item_id } } |