summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/example_spec.rb13
1 files changed, 13 insertions, 0 deletions
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