diff --git a/test/test_tags.rb b/test/test_tags.rb index b5325a7d..4ec87432 100644 --- a/test/test_tags.rb +++ b/test/test_tags.rb @@ -20,13 +20,15 @@ CONTENT end should "render markdown with pygments line handling" do - # FIXME should test for real - #Jekyll.pygments = true - #Jekyll.content_type = :markdown + 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({}, [Jekyll::Filters]) - #result = Jekyll.markdown_proc.call(result) - #assert_no_match(/markdown\-html\-error/,result) + result = Liquid::Template.parse(@content).render({}, info) + result = site.markdown(result) + assert_no_match(/markdown\-html\-error/,result) end end end