Skip to content

Commit

Permalink
Made Test::Class::Sugar use Test::Class->add_testinfo, as in the patc…
Browse files Browse the repository at this point in the history
…h supplied and not Test::Class->add_test, as in the quick and dirty patch I had installed on my home box. ashb++ for the spot.
  • Loading branch information
pdcawley committed Mar 14, 2009
1 parent 5ed2328 commit 7040b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Test/Class/Sugar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ sub _parse_inner_keyword {
$preamble = $ctx->scope_injector_call().$preamble;
$ctx->skipspace;

$ctx->get_curstash_name->add_test($name, $ctx->declarator, $plan);
$ctx->get_curstash_name->add_testinfo($name, $ctx->declarator, $plan);

$name = join('::', $ctx->get_curstash_name, $name)
unless ($name =~ /::/);
Expand Down

0 comments on commit 7040b2b

Please sign in to comment.