[Jifty-commit] r6982 - Jifty-DBI/trunk/t

Jifty commits jifty-commit at lists.jifty.org
Mon May 11 17:16:35 EDT 2009


Author: ruz
Date: Mon May 11 17:16:34 2009
New Revision: 6982

Modified:
   Jifty-DBI/trunk/t/03rename_column.t
   Jifty-DBI/trunk/t/03rename_table.t

Log:
* use drop_table_if_exists in tests

Modified: Jifty-DBI/trunk/t/03rename_column.t
==============================================================================
--- Jifty-DBI/trunk/t/03rename_column.t	(original)
+++ Jifty-DBI/trunk/t/03rename_column.t	Mon May 11 17:16:34 2009
@@ -27,7 +27,7 @@
 
     my $sth;
 
-    eval { $handle->simple_query("DROP TABLE IF EXISTS test") };
+    drop_table_if_exists( 'test', $handle );
 
     $sth = $handle->simple_query(
         "CREATE TABLE test (a int, x integer not null default 1)"

Modified: Jifty-DBI/trunk/t/03rename_table.t
==============================================================================
--- Jifty-DBI/trunk/t/03rename_table.t	(original)
+++ Jifty-DBI/trunk/t/03rename_table.t	Mon May 11 17:16:34 2009
@@ -26,8 +26,8 @@
     isa_ok( $handle->dbh, 'DBI::db' );
 
     my $sth;
-    eval { $handle->simple_query("DROP TABLE IF EXISTS test") };
-    eval { $handle->simple_query("DROP TABLE IF EXISTS test1") };
+    drop_table_if_exists( 'test', $handle );
+    drop_table_if_exists( 'test1', $handle );
 
     $sth = $handle->simple_query("CREATE TABLE test (a int)");
     ok $sth, 'created a table';


More information about the Jifty-commit mailing list