Sha256: 0188e32d541a197a71c4f39da3edde2de787e249b55e2d47b27c107644b8cd0e

Contents?: true

Size: 585 Bytes

Versions: 8

Compression:

Stored size: 585 Bytes

Contents

# encoding: utf-8

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

  include Nanoc3::TestHelpers

  def test_filter
    if_have 'typogruby' do
      # Get filter
      filter = ::Nanoc3::Filters::Typogruby.new

      # Run filter
      a = '"Typogruby makes HTML look smarter &amp; better, don\'t you think?"'
      b = '<span class="dquo">&#8220;</span>Typogruby makes <span class="caps">HTML</span> look smarter <span class="amp">&amp;</span> better, don&#8217;t you&nbsp;think?&#8221;'
      result = filter.run(a)
      assert_equal(b, result)
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

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