Sha256: 732018633ab53213eefeafa4776d4fe09ea9e2e5efcb6f54be372bb12435ddbd
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 Bytes
Contents
# encoding: utf-8 class Nanoc::Filters::TypogrubyTest < MiniTest::Unit::TestCase include Nanoc::TestHelpers def test_filter if_have 'typogruby' do # Get filter filter = ::Nanoc::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.setup_and_run(a) assert_equal(b, result) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.6.1 | test/filters/test_typogruby.rb |
nanoc-3.6.0 | test/filters/test_typogruby.rb |