Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* updated tests to pass document as first arg to visit()

git-svn-id: svn://svn.tt2.org/tt/Template2/trunk@751 d5a88997-0a34-4036-9ed2-92fb5d660d91
  • Loading branch information...
commit 61ffc3f4e7b0af2f9dd65a8e70e876e87a385a35 1 parent 658f423
@abw authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 t/context.t
View
8 t/context.t
@@ -97,11 +97,11 @@ my $blocks2 = {
eval { $context->template('some_block_1') };
ok( $@ );
-$context->visit($blocks1);
+$context->visit('no doc', $blocks1);
ok( $context->template('some_block_1') eq 'hello' );
eval { $context->template('some_block_2') };
ok( $@ );
-$context->visit($blocks2);
+$context->visit('no doc', $blocks2);
ok( $context->template('some_block_1') eq 'hello' );
ok( $context->template('some_block_2') eq 'world' );
$context->leave();
@@ -116,11 +116,11 @@ ok( $@ );
# test that reset() clears all blocks
-$context->visit($blocks1);
+$context->visit('no doc', $blocks1);
ok( $context->template('some_block_1') eq 'hello' );
eval { $context->template('some_block_2') };
ok( $@ );
-$context->visit($blocks2);
+$context->visit('no doc', $blocks2);
ok( $context->template('some_block_1') eq 'hello' );
ok( $context->template('some_block_2') eq 'world' );
$context->reset();
Please sign in to comment.
Something went wrong with that request. Please try again.