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 & better, don\'t you think?"' b = '<span class="dquo">“</span>Typogruby makes <span class="caps">HTML</span> look smarter <span class="amp">&</span> better, don’t you think?”' result = filter.run(a) assert_equal(b, result) end end end
Version data entries
8 entries across 8 versions & 1 rubygems