summaryrefslogtreecommitdiffstats
path: root/t/mustache-spec.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-03 17:06:55 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-03 17:08:47 -0500
commit5811e2f6469ab7303a2ef014f691df659f549cea (patch)
tree00bb2b5b0f8f44df3854e3ea3b91b015c6b0312f /t/mustache-spec.t
parent8d8d169d9e30784474856a9b43c43cf21a3d6a91 (diff)
downloadtext-handlebars-5811e2f6469ab7303a2ef014f691df659f549cea.tar.gz
text-handlebars-5811e2f6469ab7303a2ef014f691df659f549cea.zip
mostly implement partials
just need to get the auto-indenting behavior correct
Diffstat (limited to 't/mustache-spec.t')
-rw-r--r--t/mustache-spec.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/mustache-spec.t b/t/mustache-spec.t
index a97cb10..88f8560 100644
--- a/t/mustache-spec.t
+++ b/t/mustache-spec.t
@@ -9,15 +9,16 @@ use Test::Requires 'JSON', 'Path::Class';
for my $file (dir('t', 'mustache-spec', 'specs')->children) {
next unless $file =~ /\.json$/;
- next if $file->basename =~ /partials/;
my $tests = decode_json($file->slurp);
note("running " . $file->basename . " tests");
for my $test (@{ $tests->{tests} }) {
local $TODO = "unimplemented"
- if $file->basename eq 'delimiters.json'
- && $test->{name} =~ /partial/i;
+ if $file->basename eq 'partials.json'
+ && $test->{name} =~ /standalone/i
+ && $test->{name} !~ /line endings/i;
render_ok(
+ ($test->{partials} ? ({ path => [$test->{partials}] }) : ()),
$test->{template},
fix_data($test->{data}),
$test->{expected},