From 09b7b769554932e9b3119c89baddf8ea3b839247 Mon Sep 17 00:00:00 2001 From: Marat Radchenko Date: Tue, 3 Mar 2020 19:27:10 +0300 Subject: [PATCH] see #317 more xref anchor tests --- spec/xref_spec.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/spec/xref_spec.rb b/spec/xref_spec.rb index 278add52..a0fbed43 100644 --- a/spec/xref_spec.rb +++ b/spec/xref_spec.rb @@ -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 '

Text

' + expect(article.content).to include '

One

' + expect(article.content).to include '

Two

' + expect(article.content).to include '

Three

' end it 'displays anchor text' do