blob: 999889a72eed18fd96024dd5cd8589791c0e4623 (
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
{
avatar: nil,
entity_id: organization.id,
super_sidebar_parent: ::Sidebars::StaticMenu,
item_id: :organization_overview
}
end
end
end
|