Skip to content

Commit

Permalink
fix command tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 9, 2015
1 parent 11a3f5b commit cb28e53
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions t/mojolicious/commands.t
Expand Up @@ -116,21 +116,24 @@ $buffer = '';
local *STDOUT = $handle;
$commands->run('help', 'generate', 'lite_app');
}
like $buffer, qr/Usage: APPLICATION generate lite_app \[NAME\]/, 'right output';
like $buffer, qr/Usage: APPLICATION generate lite_app \[OPTIONS\] \[NAME\]/,
'right output';
$buffer = '';
{
open my $handle, '>', \$buffer;
local *STDOUT = $handle;
$commands->run('generate', 'app', '-h');
}
like $buffer, qr/Usage: APPLICATION generate app \[NAME\]/, 'right output';
like $buffer, qr/Usage: APPLICATION generate app \[OPTIONS\] \[NAME\]/,
'right output';
$buffer = '';
{
open my $handle, '>', \$buffer;
local *STDOUT = $handle;
$commands->run('generate', 'lite_app', '--help');
}
like $buffer, qr/Usage: APPLICATION generate lite_app \[NAME\]/, 'right output';
like $buffer, qr/Usage: APPLICATION generate lite_app \[OPTIONS\] \[NAME\]/,
'right output';

# get
require Mojolicious::Command::get;
Expand Down

0 comments on commit cb28e53

Please sign in to comment.