diff options
| author | Marat Radchenko <marat@slonopotamus.org> | 2020-03-03 19:27:10 +0300 |
|---|---|---|
| committer | Marat Radchenko <marat@slonopotamus.org> | 2020-03-03 19:27:38 +0300 |
| commit | 09b7b769554932e9b3119c89baddf8ea3b839247 (patch) | |
| tree | 7fcf55831a266be00774ba991e45115bfdb336b8 /spec | |
| parent | dd385951469d0fd7a1636d80d5789ff1ca850331 (diff) | |
see #317 more xref anchor tests
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/xref_spec.rb | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/spec/xref_spec.rb b/spec/xref_spec.rb index 278add5..a0fbed4 100644 --- a/spec/xref_spec.rb +++ b/spec/xref_spec.rb @@ -53,14 +53,22 @@ describe 'Asciidoctor::Epub3::Converter - Xref' do book = to_epub <<~EOS = Article -[id=anchor] -Text +[id=one] +One + +[[two]] +Two + +[#three] +Three More text EOS article = book.item_by_href '_article.xhtml' expect(article).not_to be_nil - expect(article.content).to include '<p id="anchor">Text</p>' + expect(article.content).to include '<p id="one">One</p>' + expect(article.content).to include '<p id="two">Two</p>' + expect(article.content).to include '<p id="three">Three</p>' end it 'displays anchor text' do |
