diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-01-30 23:50:47 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-01-30 23:50:47 -0700 |
| commit | 49ffdac8cc05b8d4284c1bce46d0dfdad65fd697 (patch) | |
| tree | f39a4eb8f1f64c4e2b308ba0fa1559f059a3b624 /test/api_test.rb | |
| parent | a14f9fbd0db0ef8642820beb77d5f225f6d32895 (diff) | |
add Adapter to the end of syntax highlighter adapter impl classes
Diffstat (limited to 'test/api_test.rb')
| -rw-r--r-- | test/api_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/api_test.rb b/test/api_test.rb index 6b74b1bf..67ecfafb 100644 --- a/test/api_test.rb +++ b/test/api_test.rb @@ -825,7 +825,7 @@ puts 'Hello, World!' syntax_hl_factory = Asciidoctor::SyntaxHighlighter::CustomFactory.new 'github' => (Asciidoctor::SyntaxHighlighter.for 'html-pipeline') doc = Asciidoctor.load input, safe: :safe, syntax_highlighter_factory: syntax_hl_factory, attributes: { 'source-highlighter' => 'github' } refute_nil doc.syntax_highlighter - assert_kind_of Asciidoctor::SyntaxHighlighter::HtmlPipeline, doc.syntax_highlighter + assert_kind_of Asciidoctor::SyntaxHighlighter::HtmlPipelineAdapter, doc.syntax_highlighter assert_includes doc.convert, '<pre lang="ruby"><code>' end |
