diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-09 03:10:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-09 03:10:07 +0300 |
commit | c72613147447f060da53873ba698133198cf416c (patch) | |
tree | c4ee34f7dca96bb48033c94910d3865b065c2439 /spec/helpers/nav | |
parent | f26a600a69b3a13d3102d801f5d92d3235ea56d4 (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.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/helpers/nav/top_nav_helper_spec.rb b/spec/helpers/nav/top_nav_helper_spec.rb index e4fa503b5ee..38f152acd79 100644 --- a/spec/helpers/nav/top_nav_helper_spec.rb +++ b/spec/helpers/nav/top_nav_helper_spec.rb @@ -27,9 +27,11 @@ RSpec.describe Nav::TopNavHelper do let(:subject) { helper.top_nav_view_model(project: current_project, group: current_group) } - let(:active_title) { 'Menu' } + let(:menu_title) { 'Menu' } before do + stub_feature_flags(new_navbar_layout: false) + allow(Gitlab::CurrentSettings).to receive(:admin_mode) { with_current_settings_admin_mode } allow(helper).to receive(:header_link?).with(:admin_mode) { with_header_link_admin_mode } @@ -44,8 +46,8 @@ RSpec.describe Nav::TopNavHelper do allow(helper).to receive(:dashboard_nav_link?).with(:activity) { with_activity } end - it 'has :activeTitle' do - expect(subject[:activeTitle]).to eq(active_title) + it 'has :menuTitle' do + expect(subject[:menuTitle]).to eq(menu_title) end context 'when current_user is nil (anonymous)' do @@ -103,7 +105,7 @@ RSpec.describe Nav::TopNavHelper do let(:current_user) { user } it 'has no menu items or views by default' do - expect(subject).to eq({ activeTitle: active_title, + expect(subject).to eq({ menuTitle: menu_title, primary: [], secondary: [], shortcuts: [], |