[Rt-devel] Possible RT testing bug
Jesse Vincent
jesse at bestpractical.com
Wed Mar 9 17:07:44 EST 2005
On Wed, Mar 09, 2005 at 04:29:15PM -0500, Todd Chapman wrote:
> RT::Ticket::Create returns an array, so when evaluated in
> a scalar context it is always true. Correct?
>
> If so, isn't this testing code from Tickets_Overlay_SQL flawed?
>
> ok( $t->Create(Queue => 'General', Subject => $string), "Ticket Created");
Yep. that looks flawed.
> _______________________________________________
> Rt-devel mailing list
> Rt-devel at lists.bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>
--
More information about the Rt-devel
mailing list