From 5811e2f6469ab7303a2ef014f691df659f549cea Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 3 Oct 2012 17:06:55 -0500 Subject: mostly implement partials just need to get the auto-indenting behavior correct --- t/mustache-spec.t | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 't') 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}, -- cgit v1.2.3-54-g00ecf