From 28cf6bf29b4d0e88f8fcd2ded52d9bca03149df9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 19 Oct 2012 11:26:58 -0500 Subject: add test for loading just the syntax on its own --- t/mustache-spec.t | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 't/mustache-spec.t') diff --git a/t/mustache-spec.t b/t/mustache-spec.t index ae69af5..abf51b7 100644 --- a/t/mustache-spec.t +++ b/t/mustache-spec.t @@ -17,16 +17,15 @@ for my $file (dir('t', 'mustache-spec', 'specs')->children) { && $test->{name} =~ /standalone/i && $test->{name} !~ /line endings/i; + my $opts = { + suffix => '.mustache', + path => [ + map { +{ "$_.mustache" => $test->{partials}{$_} } } + keys %{ $test->{partials} } + ], + }; render_ok( - ($test->{partials} - ? ({ - suffix => '.mustache', - path => [ - map { +{ "$_.mustache" => $test->{partials}{$_} } } - keys %{ $test->{partials} } - ] - }) - : ()), + $opts, $test->{template}, fix_data($test->{data}), $test->{expected}, -- cgit v1.2.3