blob: ec3f911d8dc3e1829372de15dba02d34432e297d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Sidebars::Groups::SuperSidebarMenus::DeployMenu, 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|Deploy"))
expect(subject.sprite_icon).to eq("deployments")
end
it 'defines list of NilMenuItem placeholders' do
expect(items.map(&:class).uniq).to eq([Sidebars::NilMenuItem])
expect(items.map(&:item_id)).to eq([
:packages_registry
])
end
end
|