From 421e58ad590d5964bceac90dcd5712acdf1fc394 Mon Sep 17 00:00:00 2001 From: Ishibashi Hideto Date: Tue, 10 Sep 2013 23:12:15 +0900 Subject: [PATCH] =?UTF-8?q?a=20patch=20for=20the=20issue:=20[Liquid=20does?= =?UTF-8?q?n't=20render=20my=20partial=20=C2=B7=20Issue=20#1519=20=C2=B7?= =?UTF-8?q?=20mojombo/jekyll](https://github.com/mojombo/jekyll/issues/151?= =?UTF-8?q?9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/jekyll/tags/include.rb | 4 ++++ test/test_tags.rb | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/lib/jekyll/tags/include.rb b/lib/jekyll/tags/include.rb index d98df06f..0184a6a4 100644 --- a/lib/jekyll/tags/include.rb +++ b/lib/jekyll/tags/include.rb @@ -80,6 +80,10 @@ eos return "The included file '_includes/#{@file}' should not be a symlink" end end + + def blank? + false + end end end end diff --git a/test/test_tags.rb b/test/test_tags.rb index d0992873..5e25c1db 100644 --- a/test/test_tags.rb +++ b/test/test_tags.rb @@ -436,5 +436,22 @@ CONTENT assert_match "", @result end end + + context "without parameters within if statement" do + setup do + content = < 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true}) + end + + should "include file with empty parameters within if statement" do + assert_match "", @result + end + end end end