[Catalyst-commits] r13838 - in
Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual: . Tutorial
davewood at dev.catalyst.perl.org
davewood at dev.catalyst.perl.org
Mon Dec 13 15:08:03 GMT 2010
Author: davewood
Date: 2010-12-13 15:08:02 +0000 (Mon, 13 Dec 2010)
New Revision: 13838
Modified:
Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Cookbook.pod
Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/08_Testing.pod
Log:
put use_ok into BEGIN block
Modified: Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Cookbook.pod
===================================================================
--- Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Cookbook.pod 2010-12-10 21:19:07 UTC (rev 13837)
+++ Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Cookbook.pod 2010-12-13 15:08:02 UTC (rev 13838)
@@ -2358,7 +2358,7 @@
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 @@
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 @@
=item Catalyst::Test
-L<http://search.cpan.org/dist/Catalyst/lib/Catalyst/Test.pm>
+L<Catalyst::Test>
=item Test::WWW::Mechanize::Catalyst
Modified: Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/08_Testing.pod
===================================================================
--- Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/08_Testing.pod 2010-12-10 21:19:07 UTC (rev 13837)
+++ Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/08_Testing.pod 2010-12-13 15:08:02 UTC (rev 13838)
@@ -188,7 +188,7 @@
# Can also do:
# use Test::WWW::Mechanize::Catalyst "MyApp";
- use ok "Test::WWW::Mechanize::Catalyst" => "MyApp";
+ BEGIN { use_ok("Test::WWW::Mechanize::Catalyst" => "MyApp") }
# Create two 'user agents' to simulate two different users ('test01' & 'test02')
my $ua1 = Test::WWW::Mechanize::Catalyst->new;
More information about the Catalyst-commits
mailing list