add test for broken markdown regexp
This commit is contained in:
parent
e23a74aad9
commit
d250efccb9
|
@ -14,7 +14,7 @@ class TestGeneratedSite < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
should "ensure post count is as expected" do
|
||||
assert_equal 43, @site.posts.size
|
||||
assert_equal 44, @site.posts.size
|
||||
end
|
||||
|
||||
should "insert site.posts into the index" do
|
||||
|
|
|
@ -677,6 +677,13 @@ class TestPost < Test::Unit::TestCase
|
|||
assert conv.kind_of? Jekyll::Converters::Identity
|
||||
end
|
||||
|
||||
should "process .Rmd under text if it is not in the markdown config" do
|
||||
@site.config['markdown_ext'] = 'markdown,mkd,md,text'
|
||||
post = setup_post '2014-11-24-Rmd-extension.Rmd'
|
||||
conv = post.converters.first
|
||||
assert conv.kind_of? Jekyll::Converters::Identity
|
||||
end
|
||||
|
||||
should "process .text as textile under alternate configuration" do
|
||||
@site.config['textile_ext'] = 'textile,text'
|
||||
post = setup_post '2011-04-12-text-extension.text'
|
||||
|
|
Loading…
Reference in New Issue