summaryrefslogtreecommitdiff
path: root/test/document_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2015-10-31 02:18:31 -0600
committerDan Allen <dan.j.allen@gmail.com>2015-10-31 02:18:31 -0600
commit0bba67bfbaf62074bcd7d69fa53b23b3c4457cf6 (patch)
tree5209a8a2e9453b69c2bd6c005640d543629851b0 /test/document_test.rb
parent3ffbc06665808c9395d6c2db759ba7dd38c0c543 (diff)
include full stop after footnote number in embeddable HTML
Diffstat (limited to 'test/document_test.rb')
-rw-r--r--test/document_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/document_test.rb b/test/document_test.rb
index aa1817a1..309cddbb 100644
--- a/test/document_test.rb
+++ b/test/document_test.rb
@@ -1514,6 +1514,11 @@ Text that has supporting information{empty}footnote:[An example footnote.].
output = render_embedded_string input
assert_css '#footnotes', output, 1
+ assert_css '#footnotes .footnote', output, 1
+ assert_css '#footnotes .footnote#_footnote_1', output, 1
+ assert_xpath '//div[@id="footnotes"]/div[@id="_footnote_1"]/a[@href="#_footnoteref_1"][text()="1"]', output, 1
+ text = xmlnodes_at_xpath '//div[@id="footnotes"]/div[@id="_footnote_1"]/text()', output, 1
+ assert_equal '. An example footnote.', text.text.strip
end
test 'does not render footnotes block in embedded document if nofootnotes attribute is set' do