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

scope_menu_spec.rb « menus « organizations « sidebars « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bc03787e95f1aaf05456f70bbd02b98dfb8ccfda (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::Organizations::Menus::ScopeMenu, feature_category: :navigation do
  let_it_be(:organization) { build(:organization) }
  let_it_be(:user) { build(:user) }
  let_it_be(:context) { Sidebars::Context.new(current_user: user, container: organization) }

  it_behaves_like 'serializable as super_sidebar_menu_args' do
    let(:menu) { described_class.new(context) }
    let(:extra_attrs) do
      {
        title: s_('Organization|Organization overview'),
        sprite_icon: 'organization',
        super_sidebar_parent: ::Sidebars::StaticMenu,
        item_id: :organization_overview
      }
    end
  end
end