summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-05 11:55:28 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-05 11:55:28 -0500
commit9191972488f91494a77025d27a2150a202dd0c1c (patch)
tree3cb2fb6bee76bc68d0f9a7758990c1032e83019c
parent82129e56d7e351e75513960785a9a65d4b66e9bf (diff)
downloadtext-handlebars-9191972488f91494a77025d27a2150a202dd0c1c.tar.gz
text-handlebars-9191972488f91494a77025d27a2150a202dd0c1c.zip
test empty blocks
-rw-r--r--t/blocks.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/blocks.t b/t/blocks.t
index 8b44e9d..e34ef36 100644
--- a/t/blocks.t
+++ b/t/blocks.t
@@ -61,4 +61,13 @@ render_ok(
"\@index variable"
);
+render_ok(
+ '{{#foo}}{{/foo}}bar',
+ {
+ foo => [ 1, 2, 3 ],
+ },
+ 'bar',
+ "empty block"
+);
+
done_testing;