[Bast-commits] r8477 - branches/DBIx-Class-Schema-Loader/current/t
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Sat Jan 30 21:22:15 GMT 2010
Author: caelum
Date: 2010-01-30 21:22:15 +0000 (Sat, 30 Jan 2010)
New Revision: 8477
Modified:
branches/DBIx-Class-Schema-Loader/current/t/15sybase_common.t
Log:
extra TODO test for Sybase timestamp columns
Modified: branches/DBIx-Class-Schema-Loader/current/t/15sybase_common.t
===================================================================
--- branches/DBIx-Class-Schema-Loader/current/t/15sybase_common.t 2010-01-30 20:24:21 UTC (rev 8476)
+++ branches/DBIx-Class-Schema-Loader/current/t/15sybase_common.t 2010-01-30 21:22:15 UTC (rev 8477)
@@ -1,10 +1,8 @@
use strict;
use lib qw(t/lib);
use dbixcsl_common_tests;
+use Test::More;
-# You need the sybase branch of DBIx::Class, from:
-# http://dev.catalyst.perl.org/repos/bast/DBIx-Class/0.08/branches/sybase
-
my $dsn = $ENV{DBICTEST_SYBASE_DSN} || '';
my $user = $ENV{DBICTEST_SYBASE_USER} || '';
my $password = $ENV{DBICTEST_SYBASE_PASS} || '';
@@ -15,6 +13,31 @@
dsn => $dsn,
user => $user,
password => $password,
+ extra => {
+ create => [
+ q{
+ CREATE TABLE sybase_loader_test1 (
+ id INTEGER IDENTITY NOT NULL PRIMARY KEY,
+ ts timestamp
+ )
+ },
+ ],
+ drop => [ qw/ sybase_loader_test1 / ],
+ count => 1,
+ run => sub {
+ my ($schema, $monikers, $classes) = @_;
+
+ my $rs = $schema->resultset($monikers->{sybase_loader_test1});
+
+ {
+ local $TODO = 'timestamp introspection broken';
+
+ is $rs->result_source->column_info('ts')->{data_type},
+ 'timestamp',
+ 'timestamps have the correct data_type';
+ }
+ },
+ },
);
if( !$dsn || !$user ) {
More information about the Bast-commits
mailing list