We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0fb058 commit 4e8756bCopy full SHA for 4e8756b
test/html/pipeline/syntax_highlight_filter_test.rb
@@ -8,15 +8,15 @@ def test_highlight_default
8
"<pre>hello</pre>", :highlight => "coffeescript"
9
10
doc = filter.call
11
- assert_not_empty doc.css ".highlight-coffeescript"
+ assert !doc.css(".highlight-coffeescript").empty?
12
end
13
14
def test_highlight_default_will_not_override
15
filter = SyntaxHighlightFilter.new \
16
"<pre lang='c'>hello</pre>", :highlight => "coffeescript"
17
18
19
- assert_empty doc.css ".highlight-coffeescript"
20
- assert_not_empty doc.css ".highlight-c"
+ assert doc.css(".highlight-coffeescript").empty?
+ assert !doc.css(".highlight-c").empty?
21
22
0 commit comments