test/test_helper.rb in asciidoctor-1.5.7.1 vs test/test_helper.rb in asciidoctor-1.5.8
- old
+ new
@@ -17,10 +17,11 @@
require 'tempfile'
require 'tmpdir'
autoload :FileUtils, 'fileutils'
autoload :Pathname, 'pathname'
+autoload :Open3, 'open3'
RE_XMLNS_ATTRIBUTE = / xmlns="[^"]+"/
RE_DOCTYPE = /\s*<!DOCTYPE (.*)/
require 'minitest/autorun'
@@ -191,11 +192,11 @@
opts[:header_footer] = false
doc = document_from_string src, opts
doc.blocks.first
end
- def render_string(src, opts = {})
+ def convert_string(src, opts = {})
keep_namespaces = opts.delete(:keep_namespaces)
if keep_namespaces
document_from_string(src, opts).convert
else
# this is required because nokogiri is ignorant
@@ -203,15 +204,15 @@
result = result.sub(RE_XMLNS_ATTRIBUTE, '') if result
result
end
end
- def render_embedded_string(src, opts = {})
+ def convert_string_to_embedded(src, opts = {})
opts[:header_footer] = false
document_from_string(src, opts).convert
end
- def render_inline_string(src, opts = {})
+ def convert_inline_string(src, opts = {})
opts[:doctype] = :inline
document_from_string(src, opts).convert
end
def parse_header_metadata(source, doc = nil)