mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
Unit Tests
- Modified test to use a command that exceeded the rc.abbreviation.minuіmum length.
This commit is contained in:
parent
cefbaf779b
commit
a799b54ad4
2 changed files with 5 additions and 12 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 4;
|
||||
use Test::More tests => 2;
|
||||
|
||||
# Ensure environment has no influence.
|
||||
delete $ENV{'TASKDATA'};
|
||||
|
@ -43,7 +43,6 @@ if (open my $fh, '>', $rc)
|
|||
print $fh "data.location=.\n",
|
||||
"confirmation=off\n";
|
||||
close $fh;
|
||||
ok (-r $rc, "$ut: Created $rc");
|
||||
}
|
||||
|
||||
# Note: all commands checked for $? == 0
|
||||
|
@ -56,12 +55,6 @@ ok ($? == 0, "$ut: add sample");
|
|||
my $output = qx{../src/task rc:$rc ls 2>&1};
|
||||
like ($output, qr/sample/ms, "$ut: sample task found");
|
||||
|
||||
## Cleanup.
|
||||
# Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data), $rc;
|
||||
ok (! -r 'pending.data' &&
|
||||
! -r 'completed.data' &&
|
||||
! -r 'undo.data' &&
|
||||
! -r 'backlog.data' &&
|
||||
! -r $rc, "$ut: Cleanup");
|
||||
|
||||
exit 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue