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