diff options
Diffstat (limited to 'spec/lib/sidebars/projects/menus/project_information_menu_spec.rb')
-rw-r--r-- | spec/lib/sidebars/projects/menus/project_information_menu_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/lib/sidebars/projects/menus/project_information_menu_spec.rb b/spec/lib/sidebars/projects/menus/project_information_menu_spec.rb index b50bf0f4bf1..748796bc7ee 100644 --- a/spec/lib/sidebars/projects/menus/project_information_menu_spec.rb +++ b/spec/lib/sidebars/projects/menus/project_information_menu_spec.rb @@ -8,6 +8,20 @@ RSpec.describe Sidebars::Projects::Menus::ProjectInformationMenu do let(:user) { project.owner } let(:context) { Sidebars::Projects::Context.new(current_user: user, container: project) } + describe '#container_html_options' do + subject { described_class.new(context).container_html_options } + + specify { is_expected.to match(hash_including(class: 'shortcuts-project-information has-sub-items')) } + + context 'when feature flag :sidebar_refactor is disabled' do + before do + stub_feature_flags(sidebar_refactor: false) + end + + specify { is_expected.to match(hash_including(class: 'shortcuts-project rspec-project-link has-sub-items')) } + end + end + describe 'Menu Items' do subject { described_class.new(context).renderable_items.index { |e| e.item_id == item_id } } |