blob: 7f834419866a52037c9543033662b060046ed177 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Sidebars::Concerns::ContainerWithHtmlOptions 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
describe '#collapsed_container_html_options' do
it 'includes by default aria-label attribute' do
expect(subject.collapsed_container_html_options).to eq(aria: { label: 'Foo' })
end
end
end
|