diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/xref_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/xref_spec.rb b/spec/xref_spec.rb index af3471d..a5cbf0b 100644 --- a/spec/xref_spec.rb +++ b/spec/xref_spec.rb @@ -83,4 +83,20 @@ describe 'Asciidoctor::Epub3::Converter - Xref' do expect(article).not_to be_nil expect(article.content).to include '<a id="xref-_subsection" href="#_subsection" class="xref">link text</a>' end + + it 'adds xref id to sidebar' do + book = to_epub <<~EOS + = Article + + [id=one] + **** + This is a sidebar + **** + + More text + EOS + article = book.item_by_href '_article.xhtml' + expect(article).not_to be_nil + expect(article.content).to include '<aside id="one" class="sidebar" epub:type="sidebar">' + end end |
