Sha256: 593c5796c5225a99cab6113ea8b0b02168da4031f994f8bf68860500186ee920

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 Bytes

Contents

# encoding: utf-8

class Nanoc::Filters::PandocTest < MiniTest::Unit::TestCase

  include Nanoc::TestHelpers

  def test_filter
    if_have 'pandoc-ruby' do
      if `which pandoc`.strip.empty?
        skip "could not find pandoc"
      end

      # Create filter
      filter = ::Nanoc::Filters::Pandoc.new

      # Run filter
      result = filter.run("# Heading\n")
      assert_equal("<h1 id=\"heading\">Heading</h1>", result)
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nanoc-3.5.0 test/filters/test_pandoc.rb
nanoc-3.5.0b2 test/filters/test_pandoc.rb
nanoc-3.5.0b1 test/filters/test_pandoc.rb