From 813512b43e411bb8657ecc3f9715943afff07b37 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 4 Oct 2012 17:39:32 -0500 Subject: refactor this so that helpers are just normal functions --- t/helpers.t | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 't') diff --git a/t/helpers.t b/t/helpers.t index 3cc418d..50f3fe0 100644 --- a/t/helpers.t +++ b/t/helpers.t @@ -7,7 +7,7 @@ use Test::Handlebars; render_ok( { - helpers => { + function => { noop => sub { my ($context, $options) = @_; return $options->{fn}->($context); @@ -36,7 +36,7 @@ RENDERED render_ok( { - helpers => { + function => { with => sub { my ($context, $new_context, $options) = @_; return $options->{fn}->($new_context); @@ -71,7 +71,7 @@ RENDERED render_ok( { - helpers => { + function => { with => sub { my ($context, $new_context, $options) = @_; return $options->{fn}->($new_context); @@ -138,7 +138,7 @@ RENDERED render_ok( { - helpers => { + function => { list => sub { my ($context, $items, $options) = @_; my $out = "