Skip to content

Commit

Permalink
Merge branch 'moosex-app-cmd' into moosex-app-cmd--dzil
Browse files Browse the repository at this point in the history
  • Loading branch information
tommystanton committed Jan 28, 2011
2 parents 2af9572 + 09a853e commit 4fe02c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion t/output.t
Expand Up @@ -4,6 +4,7 @@ use warnings;

use Test::More;
use App::Cmd::Tester qw(test_app);
use Lingua::EN::Numbers::Ordinate qw(ordinate);
use List::MoreUtils qw(any);

use App::Git::HomeSync;
Expand Down Expand Up @@ -58,7 +59,13 @@ sub check_action {
# There should be a regex that matches in sequence with the
# output
if ( $regex ) {
like $line, $regex, qq{Correct command};
like(
$line, $regex,
( sprintf '%s command matches: %s',
ordinate( $i + 1 ),
$regex
)
);
}
else {
fail qq{Too many lines were printed};
Expand Down
1 change: 1 addition & 0 deletions tmp/depends
Expand Up @@ -20,3 +20,4 @@ IO::All 0.39
Git::PurePerl 0.47
File::Path
List::MoreUtils 0.25_02
Lingua::EN::Numbers::Ordinate

0 comments on commit 4fe02c2

Please sign in to comment.