diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-05-20 23:42:13 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2022-05-21 01:42:25 -0600 |
| commit | c8fa1a88d410db2453cbe6d5e4e2758320886150 (patch) | |
| tree | db35cdfac911aac4bec69f3bfde6cbf954af5723 | |
| parent | b4ef253996b58503510d81a5bf2ef7340185348a (diff) | |
expand test for collapsing space around hidden index terms
| -rw-r--r-- | spec/index_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/index_spec.rb b/spec/index_spec.rb index d30d9f1e..0fe4bd6c 100644 --- a/spec/index_spec.rb +++ b/spec/index_spec.rb @@ -15,13 +15,15 @@ describe 'Asciidoctor::PDF::Converter - Index' do it 'should collapse space in front of hidden index terms' do pdf = to_pdf <<~'EOS', analyze: true before + (((zen))) (((yin))) (((yang))) - (((foobar))) after + + foo (((bar))) baz EOS - (expect pdf.lines).to eql ['before after'] + (expect pdf.lines).to eql ['before after', 'foo baz'] end it 'should not add index section if there are no index entries' do |
