[Bps-public-commit] r14254 - in sd/trunk: . t

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


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

Modified:
   sd/trunk/   (props changed)
   sd/trunk/lib/App/SD/Model/Ticket.pm
   sd/trunk/t/00-create.t

Log:
 r64555 at onn:  sartak | 2008-07-18 00:06:50 -0400
 Make the default status "new"


Modified: sd/trunk/lib/App/SD/Model/Ticket.pm
==============================================================================
--- sd/trunk/lib/App/SD/Model/Ticket.pm	(original)
+++ sd/trunk/lib/App/SD/Model/Ticket.pm	Fri Jul 18 00:09:09 2008
@@ -7,6 +7,8 @@
 use constant collection_class => 'App::SD::Collection::Ticket';
 use constant record_type => 'ticket';
 
+sub default_prop_status { 'new' }
+
 sub summary_props {
     #my @data = split(/\s+/, shift->app_handle->config('ticket_summary_props') || 'status summary');
     my @data = split(/\s+/, 'summary status');

Modified: sd/trunk/t/00-create.t
==============================================================================
--- sd/trunk/t/00-create.t	(original)
+++ sd/trunk/t/00-create.t	Fri Jul 18 00:09:09 2008
@@ -16,7 +16,7 @@
     warn "export SD_REPO=".$ENV{'PROPHET_REPO'} ."\n";
 }
 # create from sd and push
-my ($yatta_id, $yatta_uuid) = create_ticket_ok( '--summary', 'YATTA', '--status', 'new' );
+my ($yatta_id, $yatta_uuid) = create_ticket_ok( '--summary', 'YATTA');
 
 run_output_matches( 'sd', [ 'ticket',  
     'list', '--regex', '.' ],



More information about the Bps-public-commit mailing list