diff options
Diffstat (limited to 'spec/lib/gitlab/nav/top_nav_menu_header_spec.rb')
-rw-r--r-- | spec/lib/gitlab/nav/top_nav_menu_header_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/lib/gitlab/nav/top_nav_menu_header_spec.rb b/spec/lib/gitlab/nav/top_nav_menu_header_spec.rb new file mode 100644 index 00000000000..d9da3ba1e46 --- /dev/null +++ b/spec/lib/gitlab/nav/top_nav_menu_header_spec.rb @@ -0,0 +1,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 |