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>2021-05-24 12:10:31 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-24 12:10:31 +0300
commit0a35aa97051a1255e0bd8f12f30afd25ead228ff (patch)
tree90bdfdd0d28f19d844c11c92945ab67346866045 /spec/helpers/nav
parentf6df57b3011cb21c504878daf5d7b6678e07078a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers/nav')
-rw-r--r--spec/helpers/nav/top_nav_helper_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/helpers/nav/top_nav_helper_spec.rb b/spec/helpers/nav/top_nav_helper_spec.rb
index b9912171a73..91aedc5268c 100644
--- a/spec/helpers/nav/top_nav_helper_spec.rb
+++ b/spec/helpers/nav/top_nav_helper_spec.rb
@@ -94,6 +94,18 @@ RSpec.describe Nav::TopNavHelper do
]
expect(subject[:shortcuts]).to eq(expected_shortcuts)
end
+
+ it 'has expected :secondary' do
+ expected_secondary = [
+ ::Gitlab::Nav::TopNavMenuItem.build(
+ href: '/help',
+ id: 'help',
+ title: 'Help',
+ icon: 'question-o'
+ )
+ ]
+ expect(subject[:secondary]).to eq(expected_secondary)
+ end
end
context 'when current_user is non-admin' do