Skip to content

Commit

Permalink
include_path option test
Browse files Browse the repository at this point in the history
  • Loading branch information
nics committed Aug 31, 2017
1 parent 62d3499 commit 1a673f4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>"
],
"dynamic_config" : 0,
"generated_by" : "Dist::Milla version v1.0.18, Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010",
"generated_by" : "Dist::Milla version v1.0.17, Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150005",
"license" : [
"perl_5"
],
Expand All @@ -31,7 +31,7 @@
},
"develop" : {
"requires" : {
"Dist::Milla" : "v1.0.18",
"Dist::Milla" : "v1.0.17",
"Test::Pod" : "1.41"
}
},
Expand Down Expand Up @@ -70,6 +70,6 @@
"Patrick Hochstenbach <patrick.hochstenbach@ugent.be>",
"Vitali Peil <vitali.peil@uni-bielefeld.de>"
],
"x_serialization_backend" : "Cpanel::JSON::XS version 3.0237"
"x_serialization_backend" : "Cpanel::JSON::XS version 3.0233"
}

21 changes: 21 additions & 0 deletions t/options.t
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,27 @@ $exporter2 = Catmandu::Exporter::Template->new(
end_tag => "%>"
);

ok $exporter->_tt != $exporter2->_tt,
'tt engines with equal arguments get reused';

$exporter = Catmandu::Exporter::Template->new(
template => \$template,
INCLUDE_PATH => '/tmp/a',
);

$exporter2 = Catmandu::Exporter::Template->new(
template => \$template,
INCLUDE_PATH => '/tmp/a',
);

ok $exporter->_tt == $exporter2->_tt,
'tt engines wirth equal arguments get reused';

$exporter2 = Catmandu::Exporter::Template->new(
template => \$template,
INCLUDE_PATH => '/tmp/b',
);

ok $exporter->_tt != $exporter2->_tt,
'tt engines wirth equal arguments get reused';

Expand Down

0 comments on commit 1a673f4

Please sign in to comment.