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

top_nav_menu_header_spec.rb « nav « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d9da3ba1e46ac981336aab72f3959ee22cddb5c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'fast_spec_helper'

RSpec.describe ::Gitlab::Nav::TopNavMenuHeader do
  describe '.build' do
    it 'builds a hash from with the given header' do
      title = 'Test Header'
      expected = {
        title: title,
        type: :header
      }
      expect(described_class.build(title: title)).to eq(expected)
    end
  end
end