diff options
Diffstat (limited to 't/mustache-spec.t')
-rw-r--r-- | t/mustache-spec.t | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/t/mustache-spec.t b/t/mustache-spec.t index 88f8560..ae69af5 100644 --- a/t/mustache-spec.t +++ b/t/mustache-spec.t @@ -18,7 +18,15 @@ for my $file (dir('t', 'mustache-spec', 'specs')->children) { && $test->{name} !~ /line endings/i; render_ok( - ($test->{partials} ? ({ path => [$test->{partials}] }) : ()), + ($test->{partials} + ? ({ + suffix => '.mustache', + path => [ + map { +{ "$_.mustache" => $test->{partials}{$_} } } + keys %{ $test->{partials} } + ] + }) + : ()), $test->{template}, fix_data($test->{data}), $test->{expected}, |