diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-06 18:09:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-06 18:09:58 +0300 |
commit | 6d3676d61064af469f2fa1171bec4575235c6739 (patch) | |
tree | 80264790b844a7bdc60ad78d6a91580387194711 /spec/helpers | |
parent | 30acb0522a609c438d60f5345243e96f9a041ae6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/sidebars_helper_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/helpers/sidebars_helper_spec.rb b/spec/helpers/sidebars_helper_spec.rb index fa259f244bd..8d8bbcd2737 100644 --- a/spec/helpers/sidebars_helper_spec.rb +++ b/spec/helpers/sidebars_helper_spec.rb @@ -483,6 +483,7 @@ RSpec.describe SidebarsHelper, feature_category: :navigation do let(:user) { build(:user) } let(:group) { build(:group) } let(:project) { build(:project) } + let(:organization) { build(:organization) } before do allow(helper).to receive(:project_sidebar_context_data).and_return( @@ -517,6 +518,12 @@ RSpec.describe SidebarsHelper, feature_category: :navigation do expect(helper.super_sidebar_nav_panel(nav: 'admin')).to be_a(Sidebars::Admin::Panel) end + it 'returns Organization Panel for organization nav' do + expect( + helper.super_sidebar_nav_panel(nav: 'organization', organization: organization) + ).to be_a(Sidebars::Organizations::SuperSidebarPanel) + end + it 'returns "Your Work" Panel for your_work nav', :use_clean_rails_memory_store_caching do expect(helper.super_sidebar_nav_panel(nav: 'your_work', user: user)).to be_a(Sidebars::YourWork::Panel) end |