summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-08-31 03:28:04 -0600
committerDan Allen <dan.j.allen@gmail.com>2019-08-31 03:28:04 -0600
commit42c372763895b354f748dcb9492aa619ca9c8394 (patch)
tree4a556ab7c09b4da20f0e964bcfce020005d1342a /spec
parentb7d71b90677ed45f1e8a9dd8bb9de0e720add672 (diff)
verify subs are not applied to literal table cell
Diffstat (limited to 'spec')
-rw-r--r--spec/table_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/table_spec.rb b/spec/table_spec.rb
index ec760bcf..302ab665 100644
--- a/spec/table_spec.rb
+++ b/spec/table_spec.rb
@@ -474,6 +474,18 @@ describe 'Asciidoctor::PDF::Converter - Table' do
end
end
+ context 'Literal table cell' do
+ it 'wip should not apply substitutions' do
+ pdf = to_pdf <<~'EOS', analyze: true
+ |===
+ l|{asciidoctor-version} foo--bar
+ |===
+ EOS
+
+ (expect pdf.lines[0]).to eql '{asciidoctor-version} foo--bar'
+ end
+ end
+
context 'AsciiDoc table cell' do
it 'should convert blocks in an AsciiDoc table cell' do
pdf = to_pdf <<~'EOS', analyze: true