diff options
Diffstat (limited to 'spec/lib/sidebars/groups')
-rw-r--r-- | spec/lib/sidebars/groups/menus/scope_menu_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/lib/sidebars/groups/menus/scope_menu_spec.rb b/spec/lib/sidebars/groups/menus/scope_menu_spec.rb new file mode 100644 index 00000000000..4b77a09117a --- /dev/null +++ b/spec/lib/sidebars/groups/menus/scope_menu_spec.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe Sidebars::Groups::Menus::ScopeMenu do + let(:group) { build(:group) } + let(:user) { group.owner } + let(:context) { Sidebars::Groups::Context.new(current_user: user, container: group) } + + describe '#extra_nav_link_html_options' do + subject { described_class.new(context).extra_nav_link_html_options } + + specify { is_expected.to match(hash_including(class: 'context-header has-tooltip', title: context.group.name)) } + end +end |