summaryrefslogtreecommitdiff
path: root/spec/lib/sidebars/projects/menus/analytics_menu_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/sidebars/projects/menus/analytics_menu_spec.rb')
-rw-r--r--spec/lib/sidebars/projects/menus/analytics_menu_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/sidebars/projects/menus/analytics_menu_spec.rb b/spec/lib/sidebars/projects/menus/analytics_menu_spec.rb
index 9d5f029fff5..6f2ca719bc9 100644
--- a/spec/lib/sidebars/projects/menus/analytics_menu_spec.rb
+++ b/spec/lib/sidebars/projects/menus/analytics_menu_spec.rb
@@ -102,6 +102,12 @@ RSpec.describe Sidebars::Projects::Menus::AnalyticsMenu do
specify { is_expected.to be_nil }
end
+ describe 'when a user does not have access to repository graphs' do
+ let(:current_user) { guest }
+
+ specify { is_expected.to be_nil }
+ end
+
describe 'when the user does not have access' do
let(:current_user) { nil }