summaryrefslogtreecommitdiff
path: root/test/syntax_highlighter_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-01-26 19:05:11 -0700
committerDan Allen <dan.j.allen@gmail.com>2019-01-26 19:06:26 -0700
commit6edd9e0437f3dc9a1dd4d597fd81ae70dd26f741 (patch)
treefb76b7c3370a1aadc3e390b4dfd20bea3c63895b /test/syntax_highlighter_test.rb
parent7cb74679da7634d4aa2508f4c488cffd9c835295 (diff)
ensure linenos class is always added to linenos column when source highlighter is pygments
Diffstat (limited to 'test/syntax_highlighter_test.rb')
-rw-r--r--test/syntax_highlighter_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/syntax_highlighter_test.rb b/test/syntax_highlighter_test.rb
index 5a78ddc6..de49e2ac 100644
--- a/test/syntax_highlighter_test.rb
+++ b/test/syntax_highlighter_test.rb
@@ -685,12 +685,13 @@ puts 'Hello, World!'
EOS
output = convert_string_to_embedded input, safe: :safe
+ assert_css 'td.linenos', output, 1
assert_css 'div.linenodiv:not([style])', output, 1
assert_includes output, '<div class="linenodiv"><pre>'
assert_css 'pre:not([style])', output, 2
end
- test 'should not hardcode styles on lineno spans when linenums are enabled and source-highlighter is pygments' do
+ test 'should not hardcode inline styles on lineno spans when linenums are enabled and source-highlighter is pygments' do
input = <<-EOS
:source-highlighter: pygments
:pygments-css: inline