Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ooops, forgot to use PerlX::MethodCallWithBlock.

  • Loading branch information...
commit a2dae361078b85836120867f2b8615b3dcb4612a 1 parent e718940
@theory authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Test/
1  lib/Test/
@@ -397,6 +397,7 @@ something like this:
Even better, use L<PerlX::MethodCallWithBlock|PerlX::MethodCallWithBlock>
to pass a block to the method instead of a code reference:
+ use PerlX::MethodCallWithBlock;
my $i = 0;
$tx->ok( '//assets/story', 'Should have story elements' ) {
shift->is('./@id', ++$i, "ID should be $i in story $i");
Please sign in to comment.
Something went wrong with that request. Please try again.