Unit Tests

- Removed useless setup/teardown tests, improving the signal to noise ratio.
This commit is contained in:
Paul Beckingham 2014-06-01 10:23:19 -04:00
parent abb663fae3
commit ca06927eea
7 changed files with 7 additions and 57 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'};
@ -38,7 +38,6 @@ if (open my $fh, '>', 'time.rc')
{
print $fh "data.location=.\n";
close $fh;
ok (-r 'time.rc', 'Created time.rc');
}
# Create some tasks that were started/finished in different months, then verify
@ -72,10 +71,4 @@ like ($output, qr/4\s+2\s+1\s+1/, 'history.monthly - average');
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data time.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'time.rc', 'Cleanup');
exit 0;