[Bps-public-commit] dbix-searchbuilder branch, functions-in-searches, updated. 1.63-22-gfcc9099
Alex Vandiver
alexmv at bestpractical.com
Fri Mar 29 20:26:35 EDT 2013
The branch, functions-in-searches has been updated
via fcc9099bdde82c8ca323c10420f6021ca4bf6f48 (commit)
from c377cfadcb01cb9622c5925f0bbfd64ccfae9836 (commit)
Summary of changes:
t/02searches_function.t | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit fcc9099bdde82c8ca323c10420f6021ca4bf6f48
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Mar 29 20:26:30 2013 -0400
Update test messages to match tests
diff --git a/t/02searches_function.t b/t/02searches_function.t
index 86a1847..2fd6e7e 100644
--- a/t/02searches_function.t
+++ b/t/02searches_function.t
@@ -41,7 +41,7 @@ diag "FUNCTION with ? in Limit" if $ENV{'TEST_VERBOSE'};
my $users_obj = $clean_obj->Clone;
$users_obj->Limit( FUNCTION => 'SUBSTR(?, 1, 1)', FIELD => 'Login', VALUE => 'I' );
is( $users_obj->Count, 1, "only one value" );
- is( $users_obj->First->Login, 'Ivan', "three users are members of the groups" );
+ is( $users_obj->First->Login, 'Ivan', "ivan is the only match" );
}
diag "make sure case insensitive works" if $ENV{'TEST_VERBOSE'};
@@ -49,7 +49,7 @@ diag "make sure case insensitive works" if $ENV{'TEST_VERBOSE'};
my $users_obj = $clean_obj->Clone;
$users_obj->Limit( FUNCTION => 'SUBSTR(?, 1, 1)', FIELD => 'Login', VALUE => 'i' );
is( $users_obj->Count, 1, "only one value" );
- is( $users_obj->First->Login, 'Ivan', "three users are members of the groups" );
+ is( $users_obj->First->Login, 'Ivan', "ivan is the only match" );
}
diag "FUNCTION without ?, but with () in Limit" if $ENV{'TEST_VERBOSE'};
@@ -57,7 +57,7 @@ diag "FUNCTION without ?, but with () in Limit" if $ENV{'TEST_VERBOSE'};
my $users_obj = $clean_obj->Clone;
$users_obj->Limit( FUNCTION => 'SUBSTR(main.Login, 1, 1)', FIELD => 'Login', VALUE => 'I' );
is( $users_obj->Count, 1, "only one value" );
- is( $users_obj->First->Login, 'Ivan', "three users are members of the groups" );
+ is( $users_obj->First->Login, 'Ivan', "ivan is the only match" );
}
diag "FUNCTION with ? in Column" if $ENV{'TEST_VERBOSE'};
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list