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:00 -04:00
parent f85ff7bde1
commit fb11379630
4 changed files with 4 additions and 33 deletions

View file

@ -28,7 +28,7 @@
use strict;
use warnings;
use POSIX qw(mktime);
use Test::More tests => 7;
use Test::More tests => 5;
# Ensure environment has no influence.
delete $ENV{'TASKDATA'};
@ -40,7 +40,6 @@ if (open my $fh, '>', 'count.rc')
print $fh "data.location=.\n",
"confirmation=off\n";
close $fh;
ok (-r 'count.rc', 'Created count.rc');
}
# Test the count command.
@ -85,11 +84,5 @@ TODO: {
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data count.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'count.rc', 'Cleanup');
exit 0;