summaryrefslogtreecommitdiff
path: root/spec/example_spec.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-08-26 23:53:27 -0600
committerDan Allen <dan.j.allen@gmail.com>2019-08-26 23:55:04 -0600
commit451cc76b307e134bb89d6ed787894de04592081f (patch)
tree554cd7e8fa0b6fe89dc14167a35bcefcdf1facbe /spec/example_spec.rb
parentba44e54bf212487ef7e1976d9083e37bb163daea (diff)
verify signifier and numeral are not added to example block caption if example-caption attribute is unset
Diffstat (limited to 'spec/example_spec.rb')
-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