[Bps-public-commit] r13712 - in Shipwright/trunk: t

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Jul 1 10:57:42 EDT 2008


Author: sunnavy
Date: Tue Jul  1 10:57:41 2008
New Revision: 13712

Modified:
   Shipwright/trunk/   (props changed)
   Shipwright/trunk/t/71.script_cmds.t

Log:
 r13941 at sunnavys-mb:  sunnavy | 2008-06-28 10:42:28 +0800
 tests for update --builder and --utility


Modified: Shipwright/trunk/t/71.script_cmds.t
==============================================================================
--- Shipwright/trunk/t/71.script_cmds.t	(original)
+++ Shipwright/trunk/t/71.script_cmds.t	Tue Jul  1 10:57:41 2008
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 106;
+use Test::More tests => 112;
 
 use Shipwright;
 use Shipwright::Test;
@@ -246,6 +246,16 @@
             qr/run, run, configure/,
             'configure is run',
         ],
+        [
+            [ 'update', '--builder' ],
+            qr/updated with success/,
+            "updated builder",
+        ],
+        [
+            [ 'update', '--utility' ],
+            qr/updated with success/,
+            "updated utility",
+        ],
 
         $source
         ? (
@@ -268,7 +278,7 @@
                 [ 'list', 'foo', '--with-latest-version' ],
                 $update_cmd
                 ? qr/latest_version:\s+2\s+/
-                : qr/latest_version:\s+52\s+/,    # magic number ;)
+                : qr/latest_version:\s+52\s+/,    # magic number
                 'list foo, latest version seems ok',
             ],
 



More information about the Bps-public-commit mailing list