Sha256: 7210e6e3e4dfc0e0a9806514f79374610a02a482dd3f35ec009bfcd7bd17e227
Contents?: true
Size: 854 Bytes
Versions: 3
Compression:
Stored size: 854 Bytes
Contents
# encoding: utf-8 require 'test/helper' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc3-3.1.9 | test/filters/test_rdiscount.rb |
nanoc3-3.1.8 | test/filters/test_rdiscount.rb |
nanoc3-3.2.0a4 | test/filters/test_rdiscount.rb |