Sha256: 582050ed36845c94dd59aa60a6b506a210ca867e9292266d4a6a89949c5136d3

Contents?: true

Size: 491 Bytes

Versions: 14

Compression:

Stored size: 491 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

14 entries across 14 versions & 1 rubygems

Version Path
nanoc-3.7.3 test/filters/test_markaby.rb
nanoc-3.7.2 test/filters/test_markaby.rb
nanoc-3.7.1 test/filters/test_markaby.rb
nanoc-3.7.0 test/filters/test_markaby.rb
nanoc-3.6.11 test/filters/test_markaby.rb
nanoc-3.6.10 test/filters/test_markaby.rb
nanoc-3.6.9 test/filters/test_markaby.rb
nanoc-3.6.8 test/filters/test_markaby.rb
nanoc-3.6.7 test/filters/test_markaby.rb
nanoc-3.6.6 test/filters/test_markaby.rb
nanoc-3.6.5 test/filters/test_markaby.rb
nanoc-3.6.4 test/filters/test_markaby.rb
nanoc-3.6.3 test/filters/test_markaby.rb
nanoc-3.6.2 test/filters/test_markaby.rb