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

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

require 'fast_spec_helper'

RSpec.describe Sidebars::Concerns::ContainerWithHtmlOptions, feature_category: :navigation do
  subject do
    Class.new do
      include Sidebars::Concerns::ContainerWithHtmlOptions

      def title
        'Foo'
      end
    end.new
  end

  describe '#container_html_options' do
    it 'includes by default aria-label attribute' do
      expect(subject.container_html_options).to eq(aria: { label: 'Foo' })
    end
  end
end