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 => 3;
use Test::More tests => 1;
# Ensure environment has no influence.
delete $ENV{'TASKDATA'};
@@ -38,7 +38,6 @@ if (open my $fh, '>', 'backslash.rc')
{
print $fh "data.location=.\n";
close $fh;
ok (-r 'backslash.rc', 'Created backslash.rc');
}
# Add a description with a backslash.
@@ -48,12 +47,6 @@ like ($output, qr/\\/, 'Backslash preserved, no parsing issues');
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data backslash.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'backslash.rc', 'Cleanup');
exit 0;
################################################################################