Unit Tests

- Removed useless setup/teardown tests, improving the signal to noise ratio.
This commit is contained in:
Paul Beckingham
2014-06-01 09:45:46 -04:00
parent c0f4baa8d9
commit 102792e425
7 changed files with 10 additions and 88 deletions

View File

@@ -27,7 +27,7 @@
use strict;
use warnings;
use Test::More tests => 9;
use Test::More tests => 7;
# Ensure environment has no influence.
delete $ENV{'TASKDATA'};
@@ -39,7 +39,6 @@ if (open my $fh, '>', 'add.rc')
print $fh "data.location=.\n",
"confirmation=off\n";
close $fh;
ok (-r 'add.rc', 'Created add.rc');
}
# Test the add command.
@@ -60,11 +59,5 @@ like ($output, qr/Description\s+This a TEST\n/, 'add Description');
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data add.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'add.rc', 'Cleanup');
exit 0;