summaryrefslogtreecommitdiff
path: root/test/substitutions_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-04-21 23:54:16 -0600
committerDan Allen <dan.j.allen@gmail.com>2021-04-22 00:54:22 -0600
commit281393a82ca1935d49c1cc2c19237b5ff158b2bf (patch)
treee4352f385006948915518c08328e10bb2bdbd6b9 /test/substitutions_test.rb
parente51b045a0e0c7a5b885ec4e3ec283b8063c38fa7 (diff)
add negative test for empty role on inline phrase
Diffstat (limited to 'test/substitutions_test.rb')
-rw-r--r--test/substitutions_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/substitutions_test.rb b/test/substitutions_test.rb
index f097635a..67ee94dc 100644
--- a/test/substitutions_test.rb
+++ b/test/substitutions_test.rb
@@ -575,6 +575,12 @@ context 'Substitutions' do
assert_equal '<span class="red">alert</span>', para.sub_quotes(para.source)
end
+ # FIXME this is a negative test that should be updated once the problem is fixed
+ test 'should set role to empty if value before command is empty' do
+ para = block_from_string(%q{[,]#anonymous#})
+ assert_equal '<span class="">anonymous</span>', para.sub_quotes(para.source)
+ end
+
test 'inline passthrough with id and role set using shorthand' do
%w(#idname.rolename .rolename#idname).each do |attrlist|
para = block_from_string %([#{attrlist}]+pass+)