Unit Tests

- Removed useless setup/teardown tests, improving the signal to noise ratio.
This commit is contained in:
Paul Beckingham 2014-06-01 10:25:30 -04:00
parent fbdceac548
commit 1c5a9f70cb
6 changed files with 6 additions and 48 deletions

View file

@ -27,7 +27,7 @@
use strict;
use warnings;
use Test::More tests => 8;
use Test::More tests => 6;
# Ensure environment has no influence.
delete $ENV{'TASKDATA'};
@ -38,7 +38,6 @@ if (open my $fh, '>', 'projects.rc')
{
print $fh "data.location=.\n";
close $fh;
ok (-r 'projects.rc', 'Created projects.rc');
}
# Create a data set of two tasks, with unique project names, one
@ -61,11 +60,5 @@ like ($output, qr/p2/, 'p2 listed');
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data projects.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'projects.rc', 'Cleanup');
exit 0;