mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests - wait.t
- added unit test to demonstrate wait:tomorrow report issue
This commit is contained in:
parent
44fe227595
commit
7d048a8ef8
1 changed files with 8 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Test::More tests => 13;
|
use Test::More tests => 15;
|
||||||
|
|
||||||
# Create the rc file.
|
# Create the rc file.
|
||||||
if (open my $fh, '>', 'wait.rc')
|
if (open my $fh, '>', 'wait.rc')
|
||||||
|
@ -67,6 +67,13 @@ $output = qx{../task rc:wait.rc ls};
|
||||||
like ($output, qr/nowait/ms, 'non-waiting task still visible');
|
like ($output, qr/nowait/ms, 'non-waiting task still visible');
|
||||||
like ($output, qr/yeswait/ms, 'waiting task now visible');
|
like ($output, qr/yeswait/ms, 'waiting task now visible');
|
||||||
|
|
||||||
|
qx{../task rc:wait.rc add wait:tomorrow tomorrow};
|
||||||
|
$output = qx{../task rc:wait.rc ls};
|
||||||
|
unlike ($output, qr/tomorrow/ms, 'waiting task invisible');
|
||||||
|
|
||||||
|
$output = qx{../task rc:wait.rc ls wait:tomorrow};
|
||||||
|
like ($output, qr/tomorrow/ms, 'waiting task visible when specifically asked for it');
|
||||||
|
|
||||||
# Cleanup.
|
# Cleanup.
|
||||||
unlink 'pending.data';
|
unlink 'pending.data';
|
||||||
ok (!-r 'pending.data', 'Removed pending.data');
|
ok (!-r 'pending.data', 'Removed pending.data');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue