Sha256: b6000eabac69e9b0b4ec88a2d4be72945d8a3d3e29c27b07999b21c2b4024800
Contents?: true
Size: 647 Bytes
Versions: 10
Compression:
Stored size: 647 Bytes
Contents
require "test_helper" SyntaxHighlightFilter = HTML::Pipeline::SyntaxHighlightFilter class HTML::Pipeline::SyntaxHighlightFilterTest < Test::Unit::TestCase def test_highlight_default filter = SyntaxHighlightFilter.new \ "<pre>hello</pre>", :highlight => "coffeescript" doc = filter.call assert !doc.css(".highlight-coffeescript").empty? end def test_highlight_default_will_not_override filter = SyntaxHighlightFilter.new \ "<pre lang='c'>hello</pre>", :highlight => "coffeescript" doc = filter.call assert doc.css(".highlight-coffeescript").empty? assert !doc.css(".highlight-c").empty? end end
Version data entries
10 entries across 10 versions & 1 rubygems