From 451cc76b307e134bb89d6ed787894de04592081f Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Mon, 26 Aug 2019 23:53:27 -0600 Subject: verify signifier and numeral are not added to example block caption if example-caption attribute is unset --- spec/example_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'spec/example_spec.rb') diff --git a/spec/example_spec.rb b/spec/example_spec.rb index 8bf83782..724d6c08 100644 --- a/spec/example_spec.rb +++ b/spec/example_spec.rb @@ -55,4 +55,17 @@ describe 'Asciidoctor::PDF::Converter - Example' do (expect to_file).to visually_match 'example-page-split.pdf' end + + it 'should not add signifier and numeral to caption if example-caption attribute is unset' do + pdf = to_pdf <<~'EOS', analyze: true + :!example-caption: + + .Title + ==== + content + ==== + EOS + + (expect pdf.lines[0]).to eql 'Title' + end end -- cgit v1.2.3