[Bps-public-commit] r14253 - in Prophet/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Fri Jul 18 00:09:16 EDT 2008


Author: sartak
Date: Fri Jul 18 00:09:07 2008
New Revision: 14253

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/t/default.t

Log:
 r64556 at onn:  sartak | 2008-07-18 00:08:52 -0400
 Make sure that if we specify a property, it's used instead of the default


Modified: Prophet/trunk/t/default.t
==============================================================================
--- Prophet/trunk/t/default.t	(original)
+++ Prophet/trunk/t/default.t	Fri Jul 18 00:09:07 2008
@@ -1,6 +1,6 @@
 use warnings;
 use strict;
-use Test::More  tests => 7;
+use Test::More tests => 9;
 use File::Temp qw'tempdir';
 use lib 't/lib';
 
@@ -21,3 +21,9 @@
 ok($uuid);
 is( $record->prop('status'), 'new', "default status" );
 
+my $closed_record = TestApp::Bug->new( handle => $cxn );
+
+$uuid = $closed_record->create( props => { name => 'Jesse', email => 'JeSsE at bestPractical.com', status => 'closed' } );
+ok($uuid);
+is( $closed_record->prop('status'), 'closed', "default status is overridable" );
+



More information about the Bps-public-commit mailing list