View | Details | Raw Unified | Return to bug 29350
Collapse All | Expand All

(-)a/t/lib/QA/TemplateFilters.pm (+1 lines)
Lines 30-35 our @tt_directives = ( Link Here
30
30
31
our @tt_methods = (
31
our @tt_methods = (
32
    qr{\.push\(},
32
    qr{\.push\(},
33
    qr{\.delete\(},
33
);
34
);
34
35
35
sub fix_filters {
36
sub fix_filters {
(-)a/t/template_filters.t (-1 / +2 lines)
Lines 307-316 subtest 'Do not escape TT methods' => sub { Link Here
307
    plan tests => 2;
307
    plan tests => 2;
308
    my $input = <<INPUT;
308
    my $input = <<INPUT;
309
[% my_array.push(a_var) %]
309
[% my_array.push(a_var) %]
310
[% my_hash.delete(a_key) %]
310
INPUT
311
INPUT
311
312
312
    my $expected = <<EXPECTED;
313
    my $expected = <<EXPECTED;
313
[% my_array.push(a_var) %]
314
[% my_array.push(a_var) %]
315
[% my_hash.delete(a_key) %]
314
EXPECTED
316
EXPECTED
315
317
316
    my $new_content = t::lib::QA::TemplateFilters::fix_filters($input);
318
    my $new_content = t::lib::QA::TemplateFilters::fix_filters($input);
317
- 

Return to bug 29350