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>2023-07-06 18:09:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-06 18:09:58 +0300
commit6d3676d61064af469f2fa1171bec4575235c6739 (patch)
tree80264790b844a7bdc60ad78d6a91580387194711 /spec/helpers
parent30acb0522a609c438d60f5345243e96f9a041ae6 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/sidebars_helper_spec.rb7
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