Welcome to mirror list, hosted at ThFree Co, Russian Federation.

catalog_menu_spec.rb « menus « explore « sidebars « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 543f9b26a66010c19fad55a11c0cd5565839ffab (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
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Sidebars::Explore::Menus::CatalogMenu, feature_category: :navigation do
  let_it_be(:current_user) { build(:user) }
  let_it_be(:user) { build(:user) }

  let(:context) { Sidebars::Context.new(current_user: current_user, container: user) }

  subject { described_class.new(context) }

  it 'renders' do
    expect(subject.render?).to be(true)
  end

  it 'renders the correct link' do
    expect(subject.link).to match "explore/catalog"
  end

  it 'renders the correct title' do
    expect(subject.title).to eq "CI/CD Catalog"
  end

  it 'renders the correct icon' do
    expect(subject.sprite_icon).to eq "catalog-checkmark"
  end
end