[Bast-commits] r6945 - DBIx-Class/0.08/trunk/t
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Thu Jul 2 19:06:32 GMT 2009
Author: caelum
Date: 2009-07-02 19:06:32 +0000 (Thu, 02 Jul 2009)
New Revision: 6945
Modified:
DBIx-Class/0.08/trunk/t/746sybase.t
Log:
add sybase reconnect test
Modified: DBIx-Class/0.08/trunk/t/746sybase.t
===================================================================
--- DBIx-Class/0.08/trunk/t/746sybase.t 2009-07-02 19:03:24 UTC (rev 6944)
+++ DBIx-Class/0.08/trunk/t/746sybase.t 2009-07-02 19:06:32 UTC (rev 6945)
@@ -2,6 +2,7 @@
use warnings;
use Test::More;
+use Test::Exception;
use lib qw(t/lib);
use DBICTest;
@@ -10,7 +11,7 @@
plan skip_all => 'Set $ENV{DBICTEST_SYBASE_DSN}, _USER and _PASS to run this test'
unless ($dsn && $user);
-plan tests => 12;
+plan tests => 13;
my $schema = DBICTest::Schema->connect($dsn, $user, $pass, {AutoCommit => 1});
@@ -20,6 +21,11 @@
isa_ok( $schema->storage, 'DBIx::Class::Storage::DBI::Sybase' );
+my $dbh;
+lives_ok (sub {
+ $dbh = $schema->storage->dbh;
+}, 'reconnect works');
+
$schema->storage->dbh_do (sub {
my ($storage, $dbh) = @_;
eval { $dbh->do("DROP TABLE artist") };
More information about the Bast-commits
mailing list