summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-04 16:06:38 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-04 16:06:38 -0500
commitc4fd3dc97042a13cf365f06dd84bb6b02a1efdfb (patch)
treee8ba2d8de7a46b673acca3e0819e95b317d2b65e /t
parent1f055d6a66f97020c2b8aac0837bb128d4c696f5 (diff)
downloadtext-handlebars-c4fd3dc97042a13cf365f06dd84bb6b02a1efdfb.tar.gz
text-handlebars-c4fd3dc97042a13cf365f06dd84bb6b02a1efdfb.zip
implement helpers
Diffstat (limited to 't')
-rw-r--r--t/helpers.t4
1 files changed, 1 insertions, 3 deletions
diff --git a/t/helpers.t b/t/helpers.t
index ad601e9..439f191 100644
--- a/t/helpers.t
+++ b/t/helpers.t
@@ -5,7 +5,6 @@ use lib 't/lib';
use Test::More;
use Test::Handlebars;
-{ local $TODO = "unimplemented"; local $SIG{__WARN__} = sub { };
render_ok(
{
helpers => {
@@ -25,7 +24,7 @@ render_ok(
{
helpers => {
list => sub {
- my ($items, $options) = @_;
+ my ($context, $items, $options) = @_;
my $out = "<ul>";
for my $item (@$items) {
@@ -45,6 +44,5 @@ render_ok(
'<ul><li>Jesse Luehrs</li><li>Shawn Moore</li><li>Stevan Little</li></ul>',
"helpers with arguments"
);
-}
done_testing;