mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Unit Tests
- Added proper handling for when no command or filter is specified, and no rc.default.command exists. - Improved wording on above error message. - Fixed typo in previous commit (managed to check in code before the build completed, and ultimately failed). - Now reports errors that occur during initialization at the same level of verbosity as during command execution.
This commit is contained in:
parent
8aeef40b80
commit
7fbe124fe0
6 changed files with 26 additions and 12 deletions
|
@ -44,7 +44,7 @@ my $version = slurp ('../../configure.ac');
|
|||
|
||||
# Test the usage command.
|
||||
my $output = qx{../src/task rc:basic.rc};
|
||||
like ($output, qr/You must specify a command, or a task ID to modify/m, 'missing command and ID');
|
||||
like ($output, qr/You must specify a command or a task to modify./m, 'missing command and ID');
|
||||
|
||||
# Test the version command.
|
||||
$output = qx{../src/task rc:basic.rc version};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue