From 032139bd2f428e87f48ebe6c67f263144224343d Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 7 Dec 2014 16:08:16 -0800 Subject: [PATCH] Ensure only one converter is found for .Rmd in the tests. Ref: #3147. --- test/test_post.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_post.rb b/test/test_post.rb index 65eaaf92..2592b918 100644 --- a/test/test_post.rb +++ b/test/test_post.rb @@ -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