Sha256: 028c7d36f7307221fb20f7a9385a532c7973362f8190fd4eee974ee257b01dc7
Contents?: true
Size: 687 Bytes
Versions: 7
Compression:
Stored size: 687 Bytes
Contents
class Nanoc::Filters::ColorizeSyntax::PygmentsTest < Nanoc::TestCase def test_pygmentsrb skip 'pygments.rb does not support Windows' if on_windows? if_have 'pygments', 'nokogiri' do # Create filter filter = ::Nanoc::Filters::ColorizeSyntax.new # Get input and expected output input = '<pre title="moo"><code class="language-ruby"># comment…</code></pre>' expected_output = '<pre title="moo"><code class="language-ruby"><span class="c1"># comment…</span></code></pre>' # Run filter actual_output = filter.setup_and_run(input, colorizers: { ruby: :pygmentsrb }) assert_equal(expected_output, actual_output) end end end
Version data entries
7 entries across 7 versions & 1 rubygems