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:
Paul Beckingham 2009-11-08 12:51:57 -05:00
parent e222090d1f
commit bb89e1a70f

View file

@ -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
# -- -------------------------------