diff options
| author | Todd Zullinger <tmz@pobox.com> | 2023-02-21 05:42:24 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-21 03:42:24 -0700 |
| commit | 008f9056c22ed0b5b6985db991b537327edd5b8d (patch) | |
| tree | 27aadac108d9ed98ac85c868ff6487da538657ff | |
| parent | 048569bae5fbee0b25fd1e3d7e187b75e449477b (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>
| -rw-r--r-- | CHANGELOG.adoc | 1 | ||||
| -rw-r--r-- | test/syntax_highlighter_test.rb | 4 |
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 |
