mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-30 22:43:24 +02:00
Unit Tests - abbreviation.t, basic.t
- Fixed broken unit tests that relied on the string 'ABSOLUTELY NO WARRANTY' being present in the output of the version command. The tests now rely upon 'GNU General Public License' instead.
This commit is contained in:
parent
b8377b7e5c
commit
1046555c9c
2 changed files with 8 additions and 8 deletions
|
@ -68,25 +68,25 @@ unlike ($output, qr/\bwithout\b/, 'pri:H without');
|
|||
|
||||
# Test the version command abbreviations.
|
||||
$output = qx{../task rc:abbrev.rc version};
|
||||
like ($output, qr/ABSOLUTELY NO WARRANTY/, 'version');
|
||||
like ($output, qr/GNU General Public License/, 'version');
|
||||
|
||||
$output = qx{../task rc:abbrev.rc versio};
|
||||
like ($output, qr/ABSOLUTELY NO WARRANTY/, 'versio');
|
||||
like ($output, qr/GNU General Public License/, 'versio');
|
||||
|
||||
$output = qx{../task rc:abbrev.rc versi};
|
||||
like ($output, qr/ABSOLUTELY NO WARRANTY/, 'versi');
|
||||
like ($output, qr/GNU General Public License/, 'versi');
|
||||
|
||||
$output = qx{../task rc:abbrev.rc vers};
|
||||
like ($output, qr/ABSOLUTELY NO WARRANTY/, 'vers');
|
||||
like ($output, qr/GNU General Public License/, 'vers');
|
||||
|
||||
$output = qx{../task rc:abbrev.rc ver};
|
||||
like ($output, qr/ABSOLUTELY NO WARRANTY/, 'ver');
|
||||
like ($output, qr/GNU General Public License/, 'ver');
|
||||
|
||||
$output = qx{../task rc:abbrev.rc ve};
|
||||
like ($output, qr/ABSOLUTELY NO WARRANTY/, 've');
|
||||
like ($output, qr/GNU General Public License/, 've');
|
||||
|
||||
$output = qx{../task rc:abbrev.rc v};
|
||||
like ($output, qr/ABSOLUTELY NO WARRANTY/, 'v');
|
||||
like ($output, qr/GNU General Public License/, 'v');
|
||||
|
||||
# Cleanup.
|
||||
unlink 'pending.data';
|
||||
|
|
|
@ -45,7 +45,7 @@ like ($output, qr/You must specify a command, or a task ID to modify/m, 'missing
|
|||
# Test the version command.
|
||||
$output = qx{../task rc:basic.rc version};
|
||||
like ($output, qr/task \d+\.\d+\.\d+/, 'version - task version number');
|
||||
like ($output, qr/ABSOLUTELY NO WARRANTY/, 'version - warranty');
|
||||
like ($output, qr/GNU General Public License/, 'version - license');
|
||||
like ($output, qr/http:\/\/taskwarrior\.org/, 'version - url');
|
||||
|
||||
# Cleanup.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue