[Bast-commits] r7896 - DBIx-Class/0.08/trunk/t
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Sun Nov 15 11:20:27 GMT 2009
Author: ribasushi
Date: 2009-11-15 11:20:25 +0000 (Sun, 15 Nov 2009)
New Revision: 7896
Modified:
DBIx-Class/0.08/trunk/t/74mssql.t
Log:
Fix plan
Modified: DBIx-Class/0.08/trunk/t/74mssql.t
===================================================================
--- DBIx-Class/0.08/trunk/t/74mssql.t 2009-11-15 11:09:17 UTC (rev 7895)
+++ DBIx-Class/0.08/trunk/t/74mssql.t 2009-11-15 11:20:25 UTC (rev 7896)
@@ -18,10 +18,6 @@
plan skip_all => 'Set $ENV{DBICTEST_MSSQL_DSN}, _USER and _PASS to run this test'
unless ($dsn);
-my $TESTS = 18;
-
-plan tests => $TESTS * 2;
-
my @storage_types = (
'DBI::Sybase::Microsoft_SQL_Server',
'DBI::Sybase::Microsoft_SQL_Server::NoBindVars',
@@ -29,6 +25,7 @@
my $storage_idx = -1;
my $schema;
+my $NUMBER_OF_TESTS_IN_BLOCK = 18;
for my $storage_type (@storage_types) {
$storage_idx++;
@@ -44,7 +41,7 @@
if ($storage_idx == 0 && ref($schema->storage) =~ /NoBindVars\z/) {
my $tb = Test::More->builder;
- $tb->skip('no placeholders') for 1..$TESTS;
+ $tb->skip('no placeholders') for 1..$NUMBER_OF_TESTS_IN_BLOCK;
next;
}
@@ -181,6 +178,8 @@
is ($artist->id, 1, 'Artist retrieved successfully');
}, 'Query-induced autoconnect works');
+done_testing;
+
# clean up our mess
END {
if (my $dbh = eval { $schema->storage->dbh }) {
More information about the Bast-commits
mailing list