summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.adoc1
-rw-r--r--test/syntax_highlighter_test.rb4
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc
index 94eb4534..b46436e1 100644
--- a/CHANGELOG.adoc
+++ b/CHANGELOG.adoc
@@ -42,6 +42,7 @@ Compliance::
* Disallow the use of dot (`.`) in the name of a named element attribute (#4147)
* Disallow the use of the left square bracket in an attribute list on formatted text (#4306)
* Fix call order so use of an include file with invalid encoding continues to raise error when using Ruby >= 3.2.0
+ * Fix test assertion for fallback Rouge stylesheet to be compatible with Rouge 4.1 (#4406) (*@tmzullinger*)
* Drop support for Ruby < 2.5 and JRuby < 9.2
* Update latest Ruby to 3.2 in CI workflows
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