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:
Diffstat (limited to 'spec/helpers/dashboard_helper_spec.rb')
-rw-r--r--spec/helpers/dashboard_helper_spec.rb20
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