summaryrefslogtreecommitdiff
path: root/spec/helpers/dashboard_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/dashboard_helper_spec.rb')
-rw-r--r--spec/helpers/dashboard_helper_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/helpers/dashboard_helper_spec.rb b/spec/helpers/dashboard_helper_spec.rb
index 7ba24ba2956..91a5ff8819e 100644
--- a/spec/helpers/dashboard_helper_spec.rb
+++ b/spec/helpers/dashboard_helper_spec.rb
@@ -1,4 +1,4 @@
-require 'spec_helper'
+require "spec_helper"
describe DashboardHelper do
let(:user) { build(:user) }
@@ -8,14 +8,14 @@ describe DashboardHelper do
allow(helper).to receive(:can?) { true }
end
- describe '#dashboard_nav_links' do
- it 'has all the expected links by default' do
+ 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 contain_exactly(*menu_items)
end
- it 'does not contain cross project elements when the user cannot read cross project' do
+ 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)