Catalyst-TraitFor-Model-DBIC-Schema-RequestConnectionPool
view release on metacpan or search on metacpan
- 'Gareth Kirwan <gbjk@cpan.org>'
build_requires:
Catalyst: 0
Catalyst::Controller: 0
Catalyst::Model::DBIC::Schema: 0
Catalyst::Test: 0
DBI: 0
DBIx::Class::Core: 0
DBIx::Class::Schema: 0
FindBin: 0
HTTP::Request::Common: 0
Moose: 0
Test::More: 0
base: 0
strict: 0
warnings: 0
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
generated_by: 'Dist::Zilla version 4.300021, CPAN::Meta::Converter version 2.120921'
license: perl
Makefile.PL view on Meta::CPAN
"AUTHOR" => "Gareth Kirwan <gbjk\@cpan.org>",
"BUILD_REQUIRES" => {
"Catalyst" => 0,
"Catalyst::Controller" => 0,
"Catalyst::Model::DBIC::Schema" => 0,
"Catalyst::Test" => 0,
"DBI" => 0,
"DBIx::Class::Core" => 0,
"DBIx::Class::Schema" => 0,
"FindBin" => 0,
"HTTP::Request::Common" => 0,
"Moose" => 0,
"Test::More" => 0,
"base" => 0,
"strict" => 0,
"warnings" => 0
},
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => "6.30"
},
"DISTNAME" => "Catalyst-TraitFor-Model-DBIC-Schema-RequestConnectionPool",
t/02-connection_pool.t view on Meta::CPAN
use strict;
use warnings;
use FindBin '$Bin';
use lib "$Bin/lib";
use Catalyst::Test 'WookieServe';
use DBI;
use HTTP::Request::Common qw/GET/;
use Test::More tests => 2;
make_db({db_name => 'hairy', wookie => 'dirty harry'});
make_db({db_name => 'scary', wookie => 'alice'});
is(get(GET '/hairy_wookies') => 'dirty harry', 'Found the right hairy wookie');
is(get(GET '/scary_wookies') => 'alice', 'Found the right hairy wookie');
unlink $_ for map "$Bin/lib/WookieServe/$_.db", qw/hairy scary/;
( run in 0.382 second using v1.01-cache-2.11-cpan-de7293f3b23 )