[Jifty-commit] r4312 - in Jifty-DBI/trunk: t

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Oct 25 14:30:11 EDT 2007


Author: sartak
Date: Thu Oct 25 14:30:11 2007
New Revision: 4312

Modified:
   Jifty-DBI/trunk/   (props changed)
   Jifty-DBI/trunk/t/10schema.t
   Jifty-DBI/trunk/t/testmodels.pl

Log:
 r44180 at onn:  sartak | 2007-10-25 14:29:57 -0400
 Fix the mandatory/inactive tests


Modified: Jifty-DBI/trunk/t/10schema.t
==============================================================================
--- Jifty-DBI/trunk/t/10schema.t	(original)
+++ Jifty-DBI/trunk/t/10schema.t	Thu Oct 25 14:30:11 2007
@@ -160,7 +160,7 @@
 
         else {
             ok(!Sample::Corporation->COLUMNS->{us_state}->active, "state not active for version $version");
-            ok(!Sample::Corporation->COLUMNS->{us_state}->mandatory, "state not mandatory for version $version");
+            ok(Sample::Corporation->COLUMNS->{us_state}->mandatory, "state still mandatory for version $version");
         }
 
         my $corporation_version_schema = $needs_state ? "${corporation_schema}_024"

Modified: Jifty-DBI/trunk/t/testmodels.pl
==============================================================================
--- Jifty-DBI/trunk/t/testmodels.pl	(original)
+++ Jifty-DBI/trunk/t/testmodels.pl	Thu Oct 25 14:30:11 2007
@@ -148,7 +148,7 @@
     CREATE TABLE corporations (
      id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL  ,
      name varchar NOT NULL ,
-     us_state varchar 
+     us_state varchar NOT NULL
     ) ;
     }
 }
@@ -168,7 +168,7 @@
     CREATE TABLE corporations ( 
       id serial NOT NULL , 
       name varchar NOT NULL ,
-      us_state varchar ,
+      us_state varchar NOT NULL ,
       PRIMARY KEY (id)
     ) ;
     };


More information about the Jifty-commit mailing list