blob: b7d05867d77f5c6b4ae4754db8527e5e12773dfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Sidebars::Projects::SuperSidebarMenus::AnalyzeMenu, feature_category: :navigation do
subject { described_class.new({}) }
let(:items) { subject.instance_variable_get(:@items) }
it 'has title and sprite_icon' do
expect(subject.title).to eq(s_("Navigation|Analyze"))
expect(subject.sprite_icon).to eq("chart")
end
it 'defines list of NilMenuItem placeholders' do
expect(items.map(&:class).uniq).to eq([Sidebars::NilMenuItem])
expect(items.map(&:item_id)).to eq([
:dashboards_analytics,
:cycle_analytics,
:contributors,
:ci_cd_analytics,
:repository_analytics,
:code_review,
:merge_request_analytics,
:issues,
:insights
])
end
end
|