Sha256: a8accb0e527f633e2484a60deb19341aa7cf0256968949c4387ce384539a053a

Contents?: true

Size: 520 Bytes

Versions: 15

Compression:

Stored size: 520 Bytes

Contents

# encoding: utf-8

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

  include Nanoc::TestHelpers

  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.run("html do\nend")
      assert_equal("<html></html>", result)
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nanoc-3.5.0 test/filters/test_markaby.rb
nanoc-3.5.0b2 test/filters/test_markaby.rb
nanoc-3.5.0b1 test/filters/test_markaby.rb
nanoc-3.4.3 test/filters/test_markaby.rb
nanoc-3.4.2 test/filters/test_markaby.rb
nanoc-3.4.1 test/filters/test_markaby.rb
nanoc-3.4.0 test/filters/test_markaby.rb
nanoc-3.3.7 test/filters/test_markaby.rb
nanoc-3.3.6 test/filters/test_markaby.rb
nanoc-3.3.5 test/filters/test_markaby.rb
nanoc-3.3.4 test/filters/test_markaby.rb
nanoc-3.3.3 test/filters/test_markaby.rb
nanoc-3.3.2 test/filters/test_markaby.rb
nanoc-3.3.1 test/filters/test_markaby.rb
nanoc-3.3.0 test/filters/test_markaby.rb