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

@@ -27,7 +27,7 @@
use strict;
use warnings;
use Test::More tests => 4;
use Test::More tests => 2;
# Ensure environment has no influence.
delete $ENV{'TASKDATA'};
@@ -39,7 +39,6 @@ if (open my $fh, '>', 'obsolete.rc')
print $fh "data.location=.\n",
"foo=1\n";
close $fh;
ok (-r 'obsolete.rc', 'Created obsolete.rc');
}
# Test the add command.
@@ -51,11 +50,5 @@ like ($output, qr/ foo\n/, 'unsupported configuration variable');
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data obsolete.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'obsolete.rc', 'Cleanup');
exit 0;