Unit Tests

- Removed useless setup/teardown tests, improving the signal to noise ratio.
This commit is contained in:
Paul Beckingham 2014-06-01 10:20:43 -04:00
parent fb11379630
commit 7f08ec5a63
5 changed files with 5 additions and 40 deletions

View file

@ -27,7 +27,7 @@
use strict;
use warnings;
use Test::More tests => 6;
use Test::More tests => 4;
# Ensure environment has no influence.
delete $ENV{'TASKDATA'};
@ -42,7 +42,6 @@ if (open my $fh, '>', 'pri.rc')
"report.foo.labels=ID,Pri\n",
"report.foo.sort=id+\n";
close $fh;
ok (-r 'pri.rc', 'Created pri.rc');
}
# Generate the usage screen, and locate the custom report on it.
@ -58,11 +57,5 @@ like ($output, qr/3\s+Low/, 'priority.long Low');
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data pri.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'pri.rc', 'Cleanup');
exit 0;