[Bps-public-commit] r17678 - in sd/trunk: .
spang at bestpractical.com
spang at bestpractical.com
Fri Jan 9 11:38:17 EST 2009
Author: spang
Date: Fri Jan 9 11:38:17 2009
New Revision: 17678
Modified:
sd/trunk/ (props changed)
sd/trunk/t/07-sort-group.t
Log:
r53470 at loki: spang | 2009-01-09 18:37:34 +0200
add a couple more cases
Modified: sd/trunk/t/07-sort-group.t
==============================================================================
--- sd/trunk/t/07-sort-group.t (original)
+++ sd/trunk/t/07-sort-group.t Fri Jan 9 11:38:17 2009
@@ -2,7 +2,7 @@
use strict;
-use Prophet::Test tests => 9;
+use Prophet::Test tests => 11;
use App::SD::Test;
use File::Temp qw/tempdir/;
use Path::Class;
@@ -51,6 +51,13 @@
]
);
+diag('blank sort arg shouldn\'t override valid default sort');
+run_output_matches( 'sd', [ 'ticket', 'list', '--sort' ],
+ [ qr/(\d+) huzzah! new/,
+ qr/(\d+) YATTA new/,
+ ]
+);
+
diag('using default_sort_ticket_list = owner and --sort none');
run_output_matches( 'sd', [ 'ticket', 'list', '--sort', 'none' ],
[ qr/(\d+) YATTA new/,
@@ -95,6 +102,21 @@
]
);
+diag('blank group arg shouldn\'t override valid default grouping');
+run_output_matches( 'sd', [ 'ticket', 'list', '--group' ],
+ [ '',
+ qr/(alpha\@bravo.org|foo\@bar.com)/,
+ qr/(===============|===========)/,
+ '',
+ qr/((\d+) huzzah! new|(\d+) YATTA new)/,
+ '',
+ qr/(alpha\@bravo.org|foo\@bar.com)/,
+ qr/(===============|===========)/,
+ '',
+ qr/((\d+) huzzah! new|(\d+) YATTA new)/,
+ ]
+);
+
diag('using default_group_ticket_list = owner and --group none');
run_output_matches( 'sd', [ 'ticket', 'list', '--group', 'none' ],
[ qr/(\d+) YATTA new/,
More information about the Bps-public-commit
mailing list