mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Corrected test that assumed completed.data was created, which is not always the case now.
This commit is contained in:
parent
dbe38f2747
commit
855de25e0d
1 changed files with 3 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 18;
|
||||
use Test::More tests => 19;
|
||||
|
||||
# Ensure environment has no influence.
|
||||
delete $ENV{'TASKDATA'};
|
||||
|
@ -44,10 +44,11 @@ if (open my $fh, '>', 'undo.rc')
|
|||
# Test the add/done/undo commands.
|
||||
my $output = qx{../src/task rc:undo.rc add one 2>&1; ../src/task rc:undo.rc info 1 2>&1};
|
||||
ok (-r 'pending.data', 'pending.data created');
|
||||
ok (! -r 'completed.data', 'completed.data not created');
|
||||
like ($output, qr/Status\s+Pending\n/, 'Pending');
|
||||
|
||||
$output = qx{../src/task rc:undo.rc 1 done 2>&1; ../src/task rc:undo.rc info 1 2>&1};
|
||||
ok (-r 'completed.data', 'completed.data created');
|
||||
ok (! -r 'completed.data', 'completed.data created');
|
||||
like ($output, qr/Status\s+Completed\n/, 'Completed');
|
||||
|
||||
$output = qx{../src/task rc:undo.rc undo 2>&1; ../src/task rc:undo.rc info 1 2>&1};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue