Skip to content

Commit

Permalink
see #317 more xref anchor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Mar 3, 2020
1 parent dd38595 commit 09b7b76
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions spec/xref_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,22 @@
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
Expand Down

0 comments on commit 09b7b76

Please sign in to comment.