X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FTesting.pod;h=ffdbd316bab3d50435e327e4c00d15c13ee51690;hp=5842f7f3b976b312320d8db4ead8740f816a325d;hb=d04961970a25ec3dc831f89be5cd6e27fdec884a;hpb=056394af33148bedf19220d5f4934bf2615d84e8 diff --git a/lib/Catalyst/Manual/Tutorial/Testing.pod b/lib/Catalyst/Manual/Tutorial/Testing.pod index 5842f7f..ffdbd31 100644 --- a/lib/Catalyst/Manual/Tutorial/Testing.pod +++ b/lib/Catalyst/Manual/Tutorial/Testing.pod @@ -328,12 +328,12 @@ L is that it runs your full application; however, this can complicate things when you want to support multiple databases. One solution is to allow the database specification to be overridden with an environment variable. -For example, open C in your editor and +For example, open C in your editor and change the C<__PACKAGE__-Econfig(...> declaration to resemble: my $dsn = $ENV{MYAPP_DSN} ||= 'dbi:SQLite:myapp.db'; __PACKAGE__->config( - schema_class => 'MyApp::Schema::MyAppDB', + schema_class => 'MyApp::Schema', connect_info => [ $dsn, ],