[Bps-public-commit] SD - A distributed issue tracker branch, master, updated. 609ed4b5e551192036c95dbf3c15f3de11798f43

spang at bestpractical.com spang at bestpractical.com
Mon Jan 19 11:58:13 EST 2009


The branch, master has been updated
       via  609ed4b5e551192036c95dbf3c15f3de11798f43 (commit)
       via  7c9cb2404cd2b1e4c7ed15fc2be76ba1246acedf (commit)
      from  435443ea15e349404f58da2b7708e2c33072314a (commit)

Summary of changes:
 t/sd-validation.t |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 7c9cb2404cd2b1e4c7ed15fc2be76ba1246acedf
Author: Christine Spang <spang at bestpractical.com>
Date:   Mon Jan 19 18:57:53 2009 +0200

    test output of sd with multiple validation errors too

diff --git a/t/sd-validation.t b/t/sd-validation.t
index bdc31ec..15b94c0 100644
--- a/t/sd-validation.t
+++ b/t/sd-validation.t
@@ -2,7 +2,7 @@
 
 use strict;
 
-use Prophet::Test tests => 10;
+use Prophet::Test tests => 11;
 use App::SD::Test;
 no warnings 'once';
 
@@ -37,6 +37,17 @@ run_output_matches( 'sd', [ 'ticket',
     [ qr/(\d+) YATTA new/]
 );
 
+# regression test: when multiple errors are present they should be
+# separated by newlines
+is_script_output( 'sd', [ 'ticket',  
+    'update', '--uuid', $yatta_uuid, '--', '--status', 'super',
+    '--component', 'awesome'
+    ],
+   [undef],  # stdout
+    [qr/Validation error for 'component': 'awesome' is not a valid component/,
+    qr/Validation error for 'status': 'super' is not a valid status/], # stderr
+    "Despite the magic power phrase of 'yatta', super is not a valid bug status"
+);
 
 is_script_output( 'sd', [ 'ticket',  
     'update', '--uuid', $yatta_uuid, '--', '--status', 'stalled'

commit 609ed4b5e551192036c95dbf3c15f3de11798f43
Merge: 7c9cb24... 435443e...
Author: Christine Spang <spang at bestpractical.com>
Date:   Mon Jan 19 18:58:06 2009 +0200

    Merge branch 'master' of code.bestpractical.com:/git/sd


-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list