mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests - annotate.t
- Fixed bug in annotate.t, where a custom report named 'r' was used in the unit tests. This name had to be lengthened to 'rrr' to avoid conflict with the 'recurring' report. This, in itself, is a different bug.
This commit is contained in:
parent
e222090d1f
commit
bb89e1a70f
1 changed files with 6 additions and 4 deletions
|
@ -33,10 +33,12 @@ use Test::More tests => 9;
|
|||
# Create the rc file.
|
||||
if (open my $fh, '>', 'annotate.rc')
|
||||
{
|
||||
# Note: Use 'rrr' to guarantee a unique report name. Using 'r' conflicts
|
||||
# with 'recurring'.
|
||||
print $fh "data.location=.\n",
|
||||
"report.r.description=r\n",
|
||||
"report.r.columns=id,description\n",
|
||||
"report.r.sort=id+\n";
|
||||
"report.rrr.description=rrr\n",
|
||||
"report.rrr.columns=id,description\n",
|
||||
"report.rrr.sort=id+\n";
|
||||
close $fh;
|
||||
ok (-r 'annotate.rc', 'Created annotate.rc');
|
||||
}
|
||||
|
@ -47,7 +49,7 @@ qx{../task rc:annotate.rc add two};
|
|||
qx{../task rc:annotate.rc annotate 1 foo};
|
||||
sleep 2;
|
||||
qx{../task rc:annotate.rc annotate 1 bar};
|
||||
my $output = qx{../task rc:annotate.rc r};
|
||||
my $output = qx{../task rc:annotate.rc rrr};
|
||||
|
||||
# ID Description
|
||||
# -- -------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue