Sha256: b2ad550847a6a0c711cf2446f7317b8d048314acbcf526a7bffc5252a144f2d8
Contents?: true
Size: 782 Bytes
Versions: 8
Compression:
Stored size: 782 Bytes
Contents
require File.dirname(__FILE__) + '/helper' class TestTags < Test::Unit::TestCase context "tagging" do setup do @content = <<CONTENT --- layout: post title: This is a test --- This document results in a markdown error with maruku {% highlight ruby %} puts "hi" puts "bye" {% endhighlight %} CONTENT end should "render markdown with pygments line handling" do stub(Jekyll).configuration do Jekyll::DEFAULTS.merge({'pygments' => true}) end site = Site.new(Jekyll.configuration) info = { :filters => [Jekyll::Filters], :registers => { :site => site } } result = Liquid::Template.parse(@content).render({}, info) result = site.markdown(result) assert_no_match(/markdown\-html\-error/,result) end end end
Version data entries
8 entries across 8 versions & 6 rubygems