Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

t/plugin/procedural.t

  • Loading branch information...
commit 549d80b166de066dfd160c86da68e5c5beb7e2ea 1 parent 8c5ef84
@abw authored
Showing with 7 additions and 15 deletions.
  1. +6 −12 t/module/document.t
  2. +1 −3 t/plugin/cgi.t
View
18 t/module/document.t
@@ -17,7 +17,7 @@
#========================================================================
use Badger
- lib => '../../lib ../../blib/lib ../../blib/arch';
+ lib => '../../lib ../../blib/lib ../../blib/arch';
use Template::TT2::Test
tests => 16,
@@ -69,7 +69,11 @@ is( $doc->block->(), 'some output', 'ran main block' );
is( $doc->blocks->{ foo }->(), 'the foo block', 'ran foo block' );
is( $doc->blocks->{ bar }->(), 'the bar block', 'ran bar block' );
-test_expect( vars => { mydoc => $doc } );
+test_expect(
+ vars => {
+ mydoc => $doc
+ },
+);
__END__
-- test metadata --
@@ -140,13 +144,3 @@ title: My Template Title
-- expect --
some output
--- stop --
-# test for component.caller and component.callers patch
--- test --
-[% INCLUDE one;
- INCLUDE two;
- INCLUDE three;
-%]
--- expect --
-one, three
-two, three
View
4 t/plugin/cgi.t
@@ -21,7 +21,7 @@ use Badger
use CGI;
use Template::TT2::Test
debug => "Template::TT2::Plugin::CGI",
- tests => 9,
+ tests => 10,
args => \@ARGV;
@@ -108,7 +108,6 @@ name: Andy Wardley
-- process --
[% cgicheck %]
--- stop --
-- test params.item --
[% USE cgi('item=foo&items=one&items=two') -%]
item: [% cgi.params.item %]
@@ -118,4 +117,3 @@ items: [% cgi.params.items.join(', ') %]
item: foo
item: foo
items: one, two
-
Please sign in to comment.
Something went wrong with that request. Please try again.