Sha256: 5eb20805beb98429c4539debb9105b7523cc8b5e0865d62a1ff8ae5a9b80b07d

Contents?: true

Size: 384 Bytes

Versions: 18

Compression:

Stored size: 384 Bytes

Contents

# frozen_string_literal: true

require 'helper'

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

18 entries across 18 versions & 1 rubygems

Version Path
nanoc-4.8.12 test/filters/test_maruku.rb
nanoc-4.8.11 test/filters/test_maruku.rb
nanoc-4.8.10 test/filters/test_maruku.rb
nanoc-4.8.9 test/filters/test_maruku.rb
nanoc-4.8.8 test/filters/test_maruku.rb
nanoc-4.8.7 test/filters/test_maruku.rb
nanoc-4.8.6 test/filters/test_maruku.rb
nanoc-4.8.5 test/filters/test_maruku.rb
nanoc-4.8.4 test/filters/test_maruku.rb
nanoc-4.8.3 test/filters/test_maruku.rb
nanoc-4.8.2 test/filters/test_maruku.rb
nanoc-4.8.1 test/filters/test_maruku.rb
nanoc-4.8.0 test/filters/test_maruku.rb
nanoc-4.7.14 test/filters/test_maruku.rb
nanoc-4.7.13 test/filters/test_maruku.rb
nanoc-4.7.12 test/filters/test_maruku.rb
nanoc-4.7.11 test/filters/test_maruku.rb
nanoc-4.7.10 test/filters/test_maruku.rb