diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-19 14:01:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-19 14:01:45 +0300 |
commit | 9297025d0b7ddf095eb618dfaaab2ff8f2018d8b (patch) | |
tree | 865198c01d1824a9b098127baa3ab980c9cd2c06 /spec/helpers/dashboard_helper_spec.rb | |
parent | 6372471f43ee03c05a7c1f8b0c6ac6b8a7431dbe (diff) |
Add latest changes from gitlab-org/gitlab@16-7-stable-eev16.7.0-rc42
Diffstat (limited to 'spec/helpers/dashboard_helper_spec.rb')
-rw-r--r-- | spec/helpers/dashboard_helper_spec.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/helpers/dashboard_helper_spec.rb b/spec/helpers/dashboard_helper_spec.rb index 8a76771be0a..d52b3c9abb3 100644 --- a/spec/helpers/dashboard_helper_spec.rb +++ b/spec/helpers/dashboard_helper_spec.rb @@ -10,20 +10,6 @@ RSpec.describe DashboardHelper do allow(helper).to receive(:can?) { true } end - describe '#dashboard_nav_links' do - it 'has all the expected links by default' do - menu_items = [:projects, :groups, :activity, :milestones, :snippets] - - expect(helper.dashboard_nav_links).to include(*menu_items) - end - - it 'does not contain cross project elements when the user cannot read cross project' do - expect(helper).to receive(:can?).with(user, :read_cross_project) { false } - - expect(helper.dashboard_nav_links).not_to include(:activity, :milestones) - end - end - describe '#feature_entry' do shared_examples "a feature is enabled" do it { is_expected.to include('<p aria-label="Demo: status on">') } @@ -89,10 +75,4 @@ RSpec.describe DashboardHelper do it { is_expected.to eq(false) } end - - describe '#reviewer_mrs_dashboard_path' do - subject { helper.reviewer_mrs_dashboard_path } - - it { is_expected.to eq(merge_requests_dashboard_path(reviewer_username: user.username)) } - end end |