[Rt-commit] r3961 - Jifty-DBI/trunk/t

trs at bestpractical.com trs at bestpractical.com
Thu Oct 13 17:13:38 EDT 2005


Author: trs
Date: Thu Oct 13 17:13:37 2005
New Revision: 3961

Modified:
   Jifty-DBI/trunk/t/01searches.t
Log:
Oops.  Those new tests don't actually pass with SQLite.

Modified: Jifty-DBI/trunk/t/01searches.t
==============================================================================
--- Jifty-DBI/trunk/t/01searches.t	(original)
+++ Jifty-DBI/trunk/t/01searches.t	Thu Oct 13 17:13:37 2005
@@ -8,7 +8,7 @@
 BEGIN { require "t/utils.pl" }
 our (@available_drivers);
 
-use constant TESTS_PER_DRIVER => 69;
+use constant TESTS_PER_DRIVER => 59;
 
 my $total = scalar(@available_drivers) * TESTS_PER_DRIVER;
 plan tests => $total;
@@ -113,30 +113,6 @@
 	isa_ok( $first_rec, 'Jifty::DBI::Record', 'First returns record object' );
 	is( $first_rec->login, 'glasser', 'login is correct' );
 
-	# MATCHES
-	$users_obj->clean_slate;
-	is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
-	$users_obj->limit( FIELD => 'name', OPERATOR => 'MATCHES', VALUE => 'lass' );
-	is( $users_obj->count, 0, "found no user matching 'lass' in the name" );
-
-	$users_obj->clean_slate;
-	is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
-	$users_obj->limit( FIELD => 'name', OPERATOR => 'MATCHES', VALUE => '%lass' );
-	is( $users_obj->count, 0, "found no user matching '%lass' in the name" );
-
-	$users_obj->clean_slate;
-	is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
-	$users_obj->limit( FIELD => 'name', OPERATOR => 'MATCHES', VALUE => 'lass%' );
-	is( $users_obj->count, 0, "found no user matching 'lass%' in the name" );
-
-	$users_obj->clean_slate;
-	is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
-	$users_obj->limit( FIELD => 'name', OPERATOR => 'MATCHES', VALUE => '%lass%' );
-	is( $users_obj->count, 1, "found one user matching '%lass%' in the name" );
-	$first_rec = $users_obj->first;
-	isa_ok( $first_rec, 'Jifty::DBI::Record', 'First returns record object' );
-	is( $first_rec->login, 'glasser', 'login is correct' );
-
 	# STARTSWITH
 	$users_obj->clean_slate;
 	is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');


More information about the Rt-commit mailing list