diff options
Diffstat (limited to 'spec/lib/sidebars/projects/super_sidebar_menus/plan_menu_spec.rb')
-rw-r--r-- | spec/lib/sidebars/projects/super_sidebar_menus/plan_menu_spec.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/lib/sidebars/projects/super_sidebar_menus/plan_menu_spec.rb b/spec/lib/sidebars/projects/super_sidebar_menus/plan_menu_spec.rb new file mode 100644 index 00000000000..8d61c9d9a0e --- /dev/null +++ b/spec/lib/sidebars/projects/super_sidebar_menus/plan_menu_spec.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe Sidebars::Projects::SuperSidebarMenus::PlanMenu, feature_category: :navigation do + subject { described_class.new({}) } + + let(:items) { subject.instance_variable_get(:@items) } + + it 'has title and sprite_icon' do + expect(subject.title).to eq(s_("Navigation|Plan")) + expect(subject.sprite_icon).to eq("planning") + end + + it 'defines list of NilMenuItem placeholders' do + expect(items.map(&:class).uniq).to eq([Sidebars::NilMenuItem]) + expect(items.map(&:item_id)).to eq([ + :project_issue_list, + :boards, + :milestones, + :iterations, + :project_wiki, + :requirements + ]) + end +end |