Skip to content

Commit

Permalink
test --help as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 15, 2015
1 parent d22e0ac commit db7cf14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions t/mojolicious/commands.t
Expand Up @@ -102,6 +102,13 @@ $buffer = '';
local *STDOUT = $handle;
$commands->run('generate', 'lite_app', '-h');
}
like $buffer, qr/Usage: APPLICATION generate lite_app \[NAME\]/,
'right output';
{
open my $handle, '>', \$buffer;
local *STDOUT = $handle;
$commands->run('generate', 'lite_app', '--help');
}
like $buffer, qr/Usage: APPLICATION generate lite_app \[NAME\]/,
'right output';

Expand Down

0 comments on commit db7cf14

Please sign in to comment.