summaryrefslogtreecommitdiffstats
path: root/t/mustache-spec.t
diff options
context:
space:
mode:
Diffstat (limited to 't/mustache-spec.t')
-rw-r--r--t/mustache-spec.t17
1 files changed, 8 insertions, 9 deletions
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},