gitlab-org--gitlab-foss/spec/models/concerns/sidebars/container_with_html_options...

22 lines
406 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Sidebars::ContainerWithHtmlOptions do
subject do
Class.new do
include Sidebars::ContainerWithHtmlOptions
def title
'Foo'
end
end.new
end
describe '#container_html_options' do
it 'includes title attribute' do
expect(subject.container_html_options).to eq(title: 'Foo')
end
end
end