[Jifty-commit] r1595 - Jifty-DBI/trunk/t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Jul 17 01:25:45 EDT 2006
Author: audreyt
Date: Mon Jul 17 01:25:45 2006
New Revision: 1595
Modified:
Jifty-DBI/trunk/t/10schema.t
Jifty-DBI/trunk/t/testmodels.pl
Log:
* attempt to test "label" and "type" column definitions.
however, as I don't have Pg, I cannot run this test; help welcome.
Modified: Jifty-DBI/trunk/t/10schema.t
==============================================================================
--- Jifty-DBI/trunk/t/10schema.t (original)
+++ Jifty-DBI/trunk/t/10schema.t Mon Jul 17 01:25:45 2006
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/perl
use strict;
use warnings;
@@ -81,6 +81,7 @@
my $employee = Sample::Employee->new;
isa_ok($employee, 'Sample::Employee');
+ can_ok($employee, qw( label type dexterity ));
$ret = $SG->add_model($employee);
@@ -98,7 +99,9 @@
CREATE TABLE employees (
id serial NOT NULL ,
dexterity integer ,
+ label varchar ,
name varchar ,
+ type varchar ,
PRIMARY KEY (id)
) ;
END_SCHEMA
Modified: Jifty-DBI/trunk/t/testmodels.pl
==============================================================================
--- Jifty-DBI/trunk/t/testmodels.pl (original)
+++ Jifty-DBI/trunk/t/testmodels.pl Mon Jul 17 01:25:45 2006
@@ -4,6 +4,8 @@
column dexterity => type is 'integer';
column name => type is 'varchar';
+column label => type is 'varchar';
+column type => type is 'varchar';
};
More information about the Jifty-commit
mailing list