Bringing back the pygments test. All unit tests are back onboard now
This commit is contained in:
parent
ae4e7725bf
commit
cce2b8f32c
|
@ -20,13 +20,15 @@ CONTENT
|
||||||
end
|
end
|
||||||
|
|
||||||
should "render markdown with pygments line handling" do
|
should "render markdown with pygments line handling" do
|
||||||
# FIXME should test for real
|
stub(Jekyll).configuration do
|
||||||
#Jekyll.pygments = true
|
Jekyll::DEFAULTS.merge({'pygments' => true})
|
||||||
#Jekyll.content_type = :markdown
|
end
|
||||||
|
site = Site.new(Jekyll.configuration)
|
||||||
|
info = { :filters => [Jekyll::Filters], :registers => { :site => site } }
|
||||||
|
|
||||||
#result = Liquid::Template.parse(@content).render({}, [Jekyll::Filters])
|
result = Liquid::Template.parse(@content).render({}, info)
|
||||||
#result = Jekyll.markdown_proc.call(result)
|
result = site.markdown(result)
|
||||||
#assert_no_match(/markdown\-html\-error/,result)
|
assert_no_match(/markdown\-html\-error/,result)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue