Ensure only one converter is found for .Rmd in the tests. Ref: #3147.

This commit is contained in:
Parker Moore 2014-12-07 16:08:16 -08:00
parent 6deed4c66b
commit 032139bd2f
1 changed files with 2 additions and 1 deletions

View File

@ -680,8 +680,9 @@ class TestPost < Test::Unit::TestCase
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'
assert_equal 1, post.converters.size
conv = post.converters.first
assert conv.kind_of? Jekyll::Converters::Identity
assert conv.kind_of?(Jekyll::Converters::Identity), "The converter for .Rmd should be the Identity converter."
end
should "process .text as textile under alternate configuration" do