[Bps-public-commit] dbix-searchbuilder branch, set-undef-fix, updated. 1.63-13-gaedddaa

Thomas Sibley trs at bestpractical.com
Wed Apr 10 21:32:30 EDT 2013


The branch, set-undef-fix has been updated
       via  aedddaa44a21462b4d19e7d9669a0d15fbe36c5a (commit)
      from  3ed462f07049e81c16cd445f7ac7756a8c75a36f (commit)

Summary of changes:
 t/20set_edge_cases.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit aedddaa44a21462b4d19e7d9669a0d15fbe36c5a
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Apr 10 18:32:14 2013 -0700

    Update tests for 3ed462f

diff --git a/t/20set_edge_cases.t b/t/20set_edge_cases.t
index 044263b..4647939 100644
--- a/t/20set_edge_cases.t
+++ b/t/20set_edge_cases.t
@@ -42,7 +42,7 @@ foreach my $d (@AvailableDrivers) {
 
         ( $val, $msg ) = $rec->SetName(undef);
         ok( !$val, $msg );
-        is( $msg, 'Illegal value for Name', 'error message' );
+        like( $msg, qr/Illegal value for non-nullable field Name/, 'error message' );
         is( $rec->Name, 'bar', 'name is still bar' );
 
         ( $val, $msg ) = $rec->SetName('');
@@ -55,7 +55,7 @@ foreach my $d (@AvailableDrivers) {
 
         ( $val, $msg ) = $rec->SetCounter(undef);
         ok( !$val, $msg );
-        is( $msg, 'Illegal value for Counter', 'error message' );
+        like( $msg, qr/Illegal value for non-nullable field Counter/, 'error message' );
         is( $rec->Counter, 42, 'number is still 42' );
 
         ( $val, $msg ) = $rec->SetCounter('');

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list