Unit Tests

- Removed useless setup/teardown tests, improving the signal to noise ratio.
This commit is contained in:
Paul Beckingham
2014-06-01 10:00:45 -04:00
parent 8eef295bea
commit eaffa392f9
8 changed files with 9 additions and 69 deletions

View File

@@ -27,7 +27,7 @@
use strict;
use warnings;
use Test::More tests => 18;
use Test::More tests => 16;
# Ensure environment has no influence.
delete $ENV{'TASKDATA'};
@@ -39,7 +39,6 @@ if (open my $fh, '>', 'pro.rc')
print $fh "data.location=.\n",
"confirmation=off\n";
close $fh;
ok (-r 'pro.rc', 'Created pro.rc');
}
# Test the project status numbers.
@@ -156,11 +155,5 @@ like ($project_name_column, qr/^myProject\.\s*$/, '\'myProject.\' not indented')
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data pro.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'pro.rc', 'Cleanup');
exit 0;