X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FCookbook.pod;h=bb565356d38a8a91e6741667ae139ff16f8c3ba1;hb=e541538422e839971d0c91c47ea19029de01cfa5;hp=9521beb06c09c05d7488dde125d7bc290cbbf088;hpb=bf6900ba7094f316737b7ed55ec44dea547f39c0;p=catagits%2FCatalyst-Manual.git diff --git a/lib/Catalyst/Manual/Cookbook.pod b/lib/Catalyst/Manual/Cookbook.pod index 9521beb..bb56535 100644 --- a/lib/Catalyst/Manual/Cookbook.pod +++ b/lib/Catalyst/Manual/Cookbook.pod @@ -2358,7 +2358,7 @@ C environment variable is true. mundus:~/MyApp chansen$ cat t/01app.t | perl -ne 'printf( "%2d %s", $., $_ )' 1 use Test::More tests => 2; - 2 use_ok( Catalyst::Test, 'MyApp' ); + 2 BEGIN { use_ok( Catalyst::Test, 'MyApp' ) } 3 4 ok( request('/')->is_success ); @@ -2423,7 +2423,7 @@ Be sure to check out C. It makes it easy to test HTML, forms and links. A short example of usage: use Test::More tests => 6; - use_ok( Test::WWW::Mechanize::Catalyst, 'MyApp' ); + BEGIN { use_ok( Test::WWW::Mechanize::Catalyst, 'MyApp' ) } my $mech = Test::WWW::Mechanize::Catalyst->new; $mech->get_ok("http://localhost/", 'Got index page'); @@ -2438,7 +2438,7 @@ test HTML, forms and links. A short example of usage: =item Catalyst::Test -L +L =item Test::WWW::Mechanize::Catalyst