Sha256: b1495742a6e11e51d56198b8e5caa78177bb98088dc0efc1461cdbfa8f86ffbc

Contents?: true

Size: 549 Bytes

Versions: 22

Compression:

Stored size: 549 Bytes

Contents

require 'helper'

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

22 entries across 22 versions & 1 rubygems

Version Path
nanoc-4.7.9 test/filters/test_typogruby.rb
nanoc-4.7.8 test/filters/test_typogruby.rb
nanoc-4.7.7 test/filters/test_typogruby.rb
nanoc-4.7.6 test/filters/test_typogruby.rb
nanoc-4.7.5 test/filters/test_typogruby.rb
nanoc-4.7.4 test/filters/test_typogruby.rb
nanoc-4.7.3 test/filters/test_typogruby.rb
nanoc-4.7.2 test/filters/test_typogruby.rb
nanoc-4.7.1 test/filters/test_typogruby.rb
nanoc-4.7.0 test/filters/test_typogruby.rb
nanoc-4.6.4 test/filters/test_typogruby.rb
nanoc-4.6.3 test/filters/test_typogruby.rb
nanoc-4.6.2 test/filters/test_typogruby.rb
nanoc-4.6.1 test/filters/test_typogruby.rb
nanoc-4.6.0 test/filters/test_typogruby.rb
nanoc-4.5.4 test/filters/test_typogruby.rb
nanoc-4.5.3 test/filters/test_typogruby.rb
nanoc-4.5.2 test/filters/test_typogruby.rb
nanoc-4.5.1 test/filters/test_typogruby.rb
nanoc-4.5.0 test/filters/test_typogruby.rb