From: Kennedy Clark Date: Wed, 17 Feb 2010 17:40:52 +0000 (+0000) Subject: Remove now old mention of "used more than once" errors X-Git-Tag: v5.8005~28 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=0a2a4a5aba31b24b35d5b4b8dbf2cd0c36a7cb76 Remove now old mention of "used more than once" errors Fix missing indent in code block Show all of __PACKAGE__->config in DB Model --- diff --git a/lib/Catalyst/Manual/Tutorial/08_Testing.pod b/lib/Catalyst/Manual/Tutorial/08_Testing.pod index f21f5f6..e0e629c 100644 --- a/lib/Catalyst/Manual/Tutorial/08_Testing.pod +++ b/lib/Catalyst/Manual/Tutorial/08_Testing.pod @@ -132,29 +132,6 @@ environment variable. For example: $ CATALYST_DEBUG=0 prove -wl t -B Depending on the versions of various modules you have -installed, you might get some C warnings -- you can -ignore these. If you want to eliminate the warnings, you can -edit C to disable and then re-enable warnings -are the C line in C. -You can locate where C is located with the -following command (it's probably in a place similar to -C): - - perldoc -l Template::Base - -Edit the file and modify C to match: - - ... - { no strict qw( refs ); - # Disable warnings - no warnings; - $argnames = \@{"$class\::BASEARGS"} || [ ]; - # Turn warnings back on - use warnings; - } - ... - During the C and C tests, you might notice the C warning message. To execute the Pod-related tests, add C to the C @@ -299,7 +276,7 @@ editor and enter the following: # User 'test02' should not be able to add a book $ua2->get_ok("http://localhost/books/url_create/TestTitle2/2/5", "'test02' add"); $ua2->content_contains("Unauthorized!", "Check 'test02' cannot add"); - + done_testing; The C test cases uses copious comments to explain each step @@ -380,10 +357,14 @@ change the C<__PACKAGE__-Econfig(...> declaration to resemble: my $dsn = $ENV{MYAPP_DSN} ||= 'dbi:SQLite:myapp.db'; __PACKAGE__->config( schema_class => 'MyApp::Schema', - + connect_info => { dsn => $dsn, - ... + user => '', + password => '', + on_connect_do => q{PRAGMA foreign_keys = ON}, + } + ); Then, when you run your test case, you can use commands such as: