test/preamble_test.rb in asciidoctor-1.5.5 vs test/preamble_test.rb in asciidoctor-1.5.6
- old
+ new
@@ -145,10 +145,10 @@
d = document_from_string(input)
assert_equal 'book', d.doctype
output = d.render
assert_xpath '//h1', output, 3
- assert_xpath %{//*[@id="preamble"]//p[text() = "Back then#{expand_entity 8230}#{expand_entity 8203}"]}, output, 1
+ assert_xpath %{//*[@id="preamble"]//p[text() = "Back then#{decode_char 8230}#{decode_char 8203}"]}, output, 1
end
test 'should render table of contents in preamble if toc-placement attribute value is preamble' do
input = <<-EOS
= Article