Sha256: eda78675c3da43059c26eb631df4d22c0397e03325c918fc29d10afa48663e25

Contents?: true

Size: 363 Bytes

Versions: 4

Compression:

Stored size: 363 Bytes

Contents

# encoding: utf-8

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

  include Nanoc::TestHelpers

  def test_filter
    if_have 'pandoc-ruby' do
      # Create filter
      filter = ::Nanoc::Filters::Pandoc.new

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

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-3.4.3 test/filters/test_pandoc.rb
nanoc-3.4.2 test/filters/test_pandoc.rb
nanoc-3.4.1 test/filters/test_pandoc.rb
nanoc-3.4.0 test/filters/test_pandoc.rb