Skip to content

Commit

Permalink
verify tabs enclosure is removed when backend is DocBook
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Jul 26, 2023
1 parent 5e41020 commit 006af1f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions spec/tabs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,28 @@ def convert_ulist node
(expect actual).to eql expected
end

it 'should discard tabs enclosure if backend is docbook and tabs block has no attributes' do
input = <<~'END'
[tabs]
====
Tab A:: Contents of tab A.
====
END
expected = <<~'END'.chomp
<variablelist>
<varlistentry>
<term>Tab A</term>
<listitem>
<simpara>Contents of tab A.</simpara>
</listitem>
</varlistentry>
</variablelist>
END

actual = Asciidoctor.convert input, backend: 'docbook'
(expect actual).to eql expected
end

it 'should add is-sync class to tabs block if tabs-sync-option is set on document' do
input = <<~END
:tabs-sync-option:
Expand Down

0 comments on commit 006af1f

Please sign in to comment.