mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Unit Tests
- Fixed test that assumed old-style command usage. - Corrected duration unit tests.
This commit is contained in:
parent
32392b8650
commit
e1aea08f81
4 changed files with 9 additions and 8 deletions
|
@ -43,9 +43,9 @@ if (open my $fh, '>', 'custom.rc')
|
|||
ok (-r 'custom.rc', 'Created custom.rc');
|
||||
}
|
||||
|
||||
# Generate the usage screen, and locate the custom report on it.
|
||||
my $output = qx{../src/task rc:custom.rc usage};
|
||||
like ($output, qr/task foo \[tags\] \[attrs\] desc\.\.\.\s+DESC\n/m, 'report.foo');
|
||||
# Generate the help screen, and locate the custom report on it.
|
||||
my $output = qx{../src/task rc:custom.rc help};
|
||||
like ($output, qr/task foo \[<filter>\]\s+DESC\n/m, 'report.foo');
|
||||
|
||||
qx{../src/task rc:custom.rc add project:A one};
|
||||
qx{../src/task rc:custom.rc add two};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue