Sha256: f852de193541bc0ea6dd148fdbd0e69c59fc9985ac5db40ea4f06518a447a598

Contents?: true

Size: 356 Bytes

Versions: 9

Compression:

Stored size: 356 Bytes

Contents

# encoding: utf-8

class Nanoc::Filters::MarukuTest < Nanoc::TestCase

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

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

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
nanoc-3.7.3 test/filters/test_maruku.rb
nanoc-3.7.2 test/filters/test_maruku.rb
nanoc-3.7.1 test/filters/test_maruku.rb
nanoc-3.7.0 test/filters/test_maruku.rb
nanoc-3.6.11 test/filters/test_maruku.rb
nanoc-3.6.10 test/filters/test_maruku.rb
nanoc-3.6.9 test/filters/test_maruku.rb
nanoc-3.6.8 test/filters/test_maruku.rb
nanoc-3.6.7 test/filters/test_maruku.rb