use lib 't/lib';
use Test::More qw(no_plan);
use Test::Exception;
-use Devel::Dwarn;
+use CafeInsertion;
BEGIN {
- use_ok 'Cafe';
$ENV{DBIC_TRACE} = 0;
}
+
my ( $dsn, $user, $pass )
= @ENV{ map {"DBICTEST_PG_${_}"} qw/DSN USER PASS/ };
plan skip_all => <<'EOM' unless $dsn && $user;
( NOTE: This test drops and creates some tables.')
EOM
-my $schema = Cafe->connect( $dsn, $user, $pass );
-$schema->storage->dbh->{Warn} = 0;
+my $schema = CafeInsertion->connect( $dsn, $user, $pass );
$schema->storage->ensure_connected;
$schema->storage->_use_insert_returning(0);