blob: 1f0b8d72aef8a469613f1d445bccacf7a75cc7fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Sidebars::Organizations::Panel, 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) }
subject { described_class.new(context) }
it 'has a scope menu' do
expect(subject.scope_menu).to be_a(Sidebars::Organizations::Menus::ScopeMenu)
end
it_behaves_like 'a panel with uniquely identifiable menu items'
end
|