Sha256: 88ecdcda52d151dbce362031b9b073d50339a4a09d2793c630737275bea923aa

Contents?: true

Size: 489 Bytes

Versions: 4

Compression:

Stored size: 489 Bytes

Contents

# encoding: utf-8

class Nanoc::Filters::MarkabyTest < Nanoc::TestCase
  def test_filter
    # Don’t run this test on 1.9.x, because it breaks and it annoys me
    if RUBY_VERSION >= '1.9'
      skip 'Markaby is not compatible with 1.9.x'
      return
    end

    if_have 'markaby' do
      # Create filter
      filter = ::Nanoc::Filters::Markaby.new

      # Run filter
      result = filter.setup_and_run("html do\nend")
      assert_equal('<html></html>', result)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-4.0.0a2 test/filters/test_markaby.rb
nanoc-4.0.0a1 test/filters/test_markaby.rb
nanoc-3.8.0 test/filters/test_markaby.rb
nanoc-3.7.5 test/filters/test_markaby.rb