diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-10-19 11:26:58 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-10-19 11:26:58 -0500 |
commit | 28cf6bf29b4d0e88f8fcd2ded52d9bca03149df9 (patch) | |
tree | 80f0e4445b92455972f05e50d2619c8d894360ce /t/mustache-spec.t | |
parent | 481b04ace765135c4b990e90a0b872fa23f286f0 (diff) | |
download | text-handlebars-28cf6bf29b4d0e88f8fcd2ded52d9bca03149df9.tar.gz text-handlebars-28cf6bf29b4d0e88f8fcd2ded52d9bca03149df9.zip |
add test for loading just the syntax on its ownxslate-more-opcodes
Diffstat (limited to 't/mustache-spec.t')
-rw-r--r-- | t/mustache-spec.t | 17 |
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}, |