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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/sidebars/organizations/panel_spec.rb')
-rw-r--r--spec/lib/sidebars/organizations/panel_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/lib/sidebars/organizations/panel_spec.rb b/spec/lib/sidebars/organizations/panel_spec.rb
new file mode 100644
index 00000000000..1f0b8d72aef
--- /dev/null
+++ b/spec/lib/sidebars/organizations/panel_spec.rb
@@ -0,0 +1,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