[Rt-commit] r2989 - in DBIx-SearchBuilder/trunk: . t
jesse at bestpractical.com
jesse at bestpractical.com
Mon May 30 23:06:00 EDT 2005
Author: jesse
Date: Mon May 30 23:06:00 2005
New Revision: 2989
Modified:
DBIx-SearchBuilder/trunk/ (props changed)
DBIx-SearchBuilder/trunk/t/10schema.t
Log:
r18015 at hualien: jesse | 2005-05-30 23:04:29 -0400
* Schema tests were testing for 0 when they wanted to test for falseness
Modified: DBIx-SearchBuilder/trunk/t/10schema.t
==============================================================================
--- DBIx-SearchBuilder/trunk/t/10schema.t (original)
+++ DBIx-SearchBuilder/trunk/t/10schema.t Mon May 30 23:06:00 2005
@@ -49,7 +49,7 @@
my $ret = $SG->AddModel('Sample::This::Does::Not::Exist');
- ok($ret == 0, "couldn't add model from nonexistent class");
+ ok(!$ret , "couldn't add model from nonexistent class");
like($ret->error_message, qr/Error making new object from Sample::This::Does::Not::Exist/,
"couldn't add model from nonexistent class");
@@ -103,4 +103,4 @@
unshift @_, $b; unshift @_, $a;
goto &is;
-}
\ No newline at end of file
+}
More information about the Rt-commit
mailing list