Sha256: 23db30be0717424d86ec41009ee5a0d9515fd0c53dfc4b3d9a162f987f3b1702

Contents?: true

Size: 550 Bytes

Versions: 6

Compression:

Stored size: 550 Bytes

Contents

# encoding: utf-8

class Nanoc::Filters::TypogrubyTest < Nanoc::TestCase
  def test_filter
    if_have 'typogruby' do
      # Get filter
      filter = ::Nanoc::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.setup_and_run(a)
      assert_equal(b, result)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nanoc-4.0.0b2 test/filters/test_typogruby.rb
nanoc-4.0.0b1 test/filters/test_typogruby.rb
nanoc-4.0.0a2 test/filters/test_typogruby.rb
nanoc-4.0.0a1 test/filters/test_typogruby.rb
nanoc-3.8.0 test/filters/test_typogruby.rb
nanoc-3.7.5 test/filters/test_typogruby.rb