diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-05-03 03:48:59 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-05-03 03:48:59 -0600 |
| commit | 1032726d1d131cda18174802dde6a83614499df3 (patch) | |
| tree | 75fe86c8e61799640ce624a87be5124c33bbb3ee /spec/index_spec.rb | |
| parent | 9bdb1b0a69b0fdee11c6b4002d988f34486c410c (diff) | |
pass doctype as symbol instead of string in test suite
Diffstat (limited to 'spec/index_spec.rb')
| -rw-r--r-- | spec/index_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/index_spec.rb b/spec/index_spec.rb index ef9751da..8ca47d50 100644 --- a/spec/index_spec.rb +++ b/spec/index_spec.rb @@ -10,7 +10,7 @@ describe 'Asciidoctor::PDF::Converter - Index' do end it 'should add the index entries the section with the index style' do - pdf = to_pdf <<~'EOS', doctype: 'book', analyze: true + pdf = to_pdf <<~'EOS', doctype: :book, analyze: true = Document Title == Chapter About Cats @@ -51,7 +51,7 @@ describe 'Asciidoctor::PDF::Converter - Index' do end it 'should not automatically promote nested index terms' do - pdf = to_pdf <<~'EOS', doctype: 'book', analyze: true + pdf = to_pdf <<~'EOS', doctype: :book, analyze: true = Document Title == Big Cats @@ -80,7 +80,7 @@ describe 'Asciidoctor::PDF::Converter - Index' do end it 'should group index entries that start with symbol under symbol category' do - pdf = to_pdf <<~'EOS', doctype: 'book', analyze: true + pdf = to_pdf <<~'EOS', doctype: :book, analyze: true = Document Title == Symbols @@ -102,7 +102,7 @@ describe 'Asciidoctor::PDF::Converter - Index' do end it 'should not put letters outside of ASCII charset in symbol category' do - pdf = to_pdf <<~'EOS', doctype: 'book', analyze: true + pdf = to_pdf <<~'EOS', doctype: :book, analyze: true = Document Title == Unicode Party @@ -125,7 +125,7 @@ describe 'Asciidoctor::PDF::Converter - Index' do end it 'should not combine range if same index entry occurs on sequential pages when media is screen' do - pdf = to_pdf <<~'EOS', doctype: 'book', analyze: true + pdf = to_pdf <<~'EOS', doctype: :book, analyze: true = Document Title == First Chapter @@ -148,7 +148,7 @@ describe 'Asciidoctor::PDF::Converter - Index' do end it 'should combine range if same index entry occurs on sequential pages when media is not screen' do - pdf = to_pdf <<~'EOS', doctype: 'book', attributes: { 'media' => 'print', 'nofooter' => '' }, analyze: true + pdf = to_pdf <<~'EOS', doctype: :book, attributes: { 'media' => 'print', 'nofooter' => '' }, analyze: true = Document Title == First Chapter |
