Unit Tests

- Removed useless setup/teardown tests, improving the signal to noise ratio.
This commit is contained in:
Paul Beckingham
2014-06-01 10:23:19 -04:00
parent abb663fae3
commit ca06927eea
7 changed files with 7 additions and 57 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'};
@@ -42,7 +42,6 @@ if (open my $fh, '>', 'bug.rc')
print $fh "detection=off\n";
print $fh "verbose=nothing\n";
close $fh;
ok (-r 'bug.rc', 'Created bug.rc');
}
# Split on comma instead of hyphenating
@@ -52,11 +51,5 @@ unlike ($output, qr/-/, 'split on comma for comma-separated lists');
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data bug.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'bug.rc', 'Cleanup');
exit 0;