Sha256: 2f5f40c51b605edcc542f66d2f64958db1e9cb7e60abd89357774c260124540b

Contents?: true

Size: 382 Bytes

Versions: 8

Compression:

Stored size: 382 Bytes

Contents

# encoding: utf-8

class Nanoc3::Filters::MarukuTest < MiniTest::Unit::TestCase

  include Nanoc3::TestHelpers

  def test_filter
    if_have 'maruku' do
      # Create filter
      filter = ::Nanoc3::Filters::Maruku.new

      # Run filter
      result = filter.run("This is _so_ *cool*!")
      assert_equal("<p>This is <em>so</em> <em>cool</em>!</p>", result)
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nanoc3-3.2.4 test/filters/test_maruku.rb
nanoc3-3.2.3 test/filters/test_maruku.rb
nanoc3-3.2.2 test/filters/test_maruku.rb
nanoc3-3.2.1 test/filters/test_maruku.rb
nanoc3-3.2.0 test/filters/test_maruku.rb
nanoc3-3.2.0b3 test/filters/test_maruku.rb
nanoc3-3.2.0b2 test/filters/test_maruku.rb
nanoc3-3.2.0b1 test/filters/test_maruku.rb