summaryrefslogtreecommitdiff
path: root/test/text_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2018-04-08 23:51:15 -0600
committerDan Allen <dan.j.allen@gmail.com>2018-04-08 23:51:15 -0600
commiteebcac420a22f559e85c2c0a067e368de2de5d43 (patch)
tree5f75c101ff553be76b13c32d02eca2b9dac60ebb /test/text_test.rb
parentae062525fe6055d8ce0c18d2fb74af8a538b8e09 (diff)
purge render method from test suite (except to verify alias)
- replace use of render method with convert method
Diffstat (limited to 'test/text_test.rb')
-rw-r--r--test/text_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/text_test.rb b/test/text_test.rb
index 5774c97f..c5328537 100644
--- a/test/text_test.rb
+++ b/test/text_test.rb
@@ -6,25 +6,25 @@ end
context "Text" do
test "proper encoding to handle utf8 characters in document using html backend" do
- output = example_document(:encoding).render
+ output = example_document(:encoding).convert
assert_xpath '//p', output, 4
assert_xpath '//a', output, 1
end
test "proper encoding to handle utf8 characters in embedded document using html backend" do
- output = example_document(:encoding, :header_footer => false).render
+ output = example_document(:encoding, :header_footer => false).convert
assert_xpath '//p', output, 4
assert_xpath '//a', output, 1
end
test "proper encoding to handle utf8 characters in document using docbook45 backend" do
- output = example_document(:encoding, :attributes => {'backend' => 'docbook45', 'xmlns' => ''}).render
+ output = example_document(:encoding, :attributes => {'backend' => 'docbook45', 'xmlns' => ''}).convert
assert_xpath '//xmlns:simpara', output, 4
assert_xpath '//xmlns:ulink', output, 1
end
test "proper encoding to handle utf8 characters in embedded document using docbook45 backend" do
- output = example_document(:encoding, :header_footer => false, :attributes => {'backend' => 'docbook45'}).render
+ output = example_document(:encoding, :header_footer => false, :attributes => {'backend' => 'docbook45'}).convert
assert_xpath '//simpara', output, 4
assert_xpath '//ulink', output, 1
end
@@ -37,7 +37,7 @@ context "Text" do
doc = empty_document
reader = Asciidoctor::PreprocessorReader.new doc, input, nil, :normalize => true
block = Asciidoctor::Parser.next_block(reader, doc)
- assert_xpath '//pre', block.render.gsub(/^\s*\n/, ''), 1
+ assert_xpath '//pre', block.convert.gsub(/^\s*\n/, ''), 1
end
test 'proper encoding to handle utf8 characters from included file' do
@@ -47,7 +47,7 @@ include::fixtures/encoding.asciidoc[tags=romé]
doc = empty_safe_document :base_dir => File.expand_path(File.dirname(__FILE__))
reader = Asciidoctor::PreprocessorReader.new doc, input, nil, :normalize => true
block = Asciidoctor::Parser.next_block(reader, doc)
- output = block.render
+ output = block.convert
assert_css '.paragraph', output, 1
end