summaryrefslogtreecommitdiff
path: root/test/syntax_highlighter_test.rb
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2023-02-21 05:42:24 -0500
committerGitHub <noreply@github.com>2023-02-21 03:42:24 -0700
commit008f9056c22ed0b5b6985db991b537327edd5b8d (patch)
tree27aadac108d9ed98ac85c868ff6487da538657ff /test/syntax_highlighter_test.rb
parent048569bae5fbee0b25fd1e3d7e187b75e449477b (diff)
resolves #4406 fix test assertion for fallback Rouge stylesheet to be compatible with Rouge 4.1 (PR #4407)
Co-authored-by: Dan Allen <dan.j.allen@gmail.com>
Diffstat (limited to 'test/syntax_highlighter_test.rb')
-rw-r--r--test/syntax_highlighter_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/syntax_highlighter_test.rb b/test/syntax_highlighter_test.rb
index 5cf5142b..7a6fd2f2 100644
--- a/test/syntax_highlighter_test.rb
+++ b/test/syntax_highlighter_test.rb
@@ -1061,8 +1061,8 @@ context 'Syntax Highlighter' do
EOS
output = convert_string input, safe: :safe, linkcss_default: true
assert_css 'pre.rouge', output, 1
- assert_includes output, 'pre.rouge .no {'
- assert_match %r/pre\.rouge \{\s*background-color: #f8f8f8;/m, output
+ expected_css = (Asciidoctor::SyntaxHighlighter.for 'rouge').read_stylesheet 'github'
+ assert_includes output, expected_css
end
test 'should restore isolated callout mark on last line of source' do