Sha256: 59a2a078af397a52c5350a51ec58d99cf2fb593914e8c1cb0206585f35394d15
Contents?: true
Size: 831 Bytes
Versions: 8
Compression:
Stored size: 831 Bytes
Contents
# encoding: utf-8 class Nanoc3::Filters::RDiscountTest < MiniTest::Unit::TestCase include Nanoc3::TestHelpers def test_filter if_have 'rdiscount' do # Create filter filter = ::Nanoc3::Filters::RDiscount.new # Run filter result = filter.run("> Quote") assert_match(/<blockquote>\s*<p>Quote<\/p>\s*<\/blockquote>/, result) end end def test_with_extensions if_have 'rdiscount' do # Create filter filter = ::Nanoc3::Filters::RDiscount.new # Run filter input = "The quotation 'marks' sure make this look sarcastic!" output_expected = /The quotation ‘marks’ sure make this look sarcastic!/ output_actual = filter.run(input, :extensions => [ :smart ]) assert_match(output_expected, output_actual) end end end
Version data entries
8 entries across 8 versions & 1 rubygems