Sha256: 80dbbe68ccebc9721a0fead7dc7221f03bf75daf6232b52719d76f3969dc687f
Contents?: true
Size: 847 Bytes
Versions: 2
Compression:
Stored size: 847 Bytes
Contents
# encoding: utf-8 class Nanoc::Filters::RDiscountTest < MiniTest::Unit::TestCase include Nanoc::TestHelpers def test_filter if_have 'rdiscount' do # Create filter filter = ::Nanoc::Filters::RDiscount.new # Run filter result = filter.setup_and_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 = ::Nanoc::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.setup_and_run(input, :extensions => [ :smart ]) assert_match(output_expected, output_actual) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.6.1 | test/filters/test_rdiscount.rb |
nanoc-3.6.0 | test/filters/test_rdiscount.rb |