Sha256: 305e020e81cb025feef79a3f4b367c4ce063f02c0415dab49dc36b97417a02e7

Contents?: true

Size: 531 Bytes

Versions: 40

Compression:

Stored size: 531 Bytes

Contents

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

40 entries across 40 versions & 1 rubygems

Version Path
nanoc-4.4.5 test/filters/test_typogruby.rb
nanoc-4.4.4 test/filters/test_typogruby.rb
nanoc-4.4.3 test/filters/test_typogruby.rb
nanoc-4.4.2 test/filters/test_typogruby.rb
nanoc-4.4.1 test/filters/test_typogruby.rb
nanoc-4.4.0 test/filters/test_typogruby.rb
nanoc-4.3.8 test/filters/test_typogruby.rb
nanoc-4.3.7 test/filters/test_typogruby.rb
nanoc-4.3.6 test/filters/test_typogruby.rb
nanoc-4.3.5 test/filters/test_typogruby.rb
nanoc-4.3.4 test/filters/test_typogruby.rb
nanoc-4.3.3 test/filters/test_typogruby.rb
nanoc-4.3.2 test/filters/test_typogruby.rb
nanoc-4.3.1 test/filters/test_typogruby.rb
nanoc-4.3.0 test/filters/test_typogruby.rb
nanoc-4.2.4 test/filters/test_typogruby.rb
nanoc-4.2.3 test/filters/test_typogruby.rb
nanoc-4.2.2 test/filters/test_typogruby.rb
nanoc-4.2.1 test/filters/test_typogruby.rb
nanoc-4.2.0 test/filters/test_typogruby.rb