[Bps-public-commit] r11904 - sd/trunk/t

jesse at bestpractical.com jesse at bestpractical.com
Sat Apr 26 14:46:50 EDT 2008


Author: jesse
Date: Sat Apr 26 14:46:50 2008
New Revision: 11904

Modified:
   sd/trunk/t/sd-validation.t

Log:
 * tests now fully exercise status validation

Modified: sd/trunk/t/sd-validation.t
==============================================================================
--- sd/trunk/t/sd-validation.t	(original)
+++ sd/trunk/t/sd-validation.t	Sat Apr 26 14:46:50 2008
@@ -2,7 +2,7 @@
 
 use strict;
 
-use Prophet::Test tests => 6;
+use Prophet::Test tests => 10;
 
 no warnings 'once';
 
@@ -67,5 +67,24 @@
 );
 
 
+is_script_output( 'sd', [ 'ticket',  
+    '--update', '--uuid', $yatta_uuid, '--status', ''
+    ],
+   [], # stdout
+    [qr/Validation error for 'status': '' is not a valid status/], #stderr
+   "Setting the status to stalled went ok"
+
+);
+
+
+run_output_matches( 'sd', [ 'ticket',  
+    '--list', '--regex', '.' ],
+    [ sort "$yatta_uuid YATTA stalled"]
+);
+
+
+
+
+
 1;
 



More information about the Bps-public-commit mailing list