Unit Tests

- Removed useless setup/teardown tests, improving the signal to noise ratio.
This commit is contained in:
Paul Beckingham
2014-06-01 09:43:00 -04:00
parent 6706d1b955
commit 77d93ef631
9 changed files with 11 additions and 73 deletions

View File

@@ -27,7 +27,7 @@
use strict;
use warnings;
use Test::More tests => 12;
use Test::More tests => 10;
use File::Path;
# Ensure environment has no influence.
@@ -39,7 +39,6 @@ if (open my $fh, '>', 'rc1')
{
print $fh "data.location=./data1\n";
close $fh;
ok (-r 'rc1', 'Created rc1');
}
if (open my $fh, '>', 'rc2')
@@ -87,10 +86,5 @@ rmtree ('./data1', 0 , 1);
rmtree ('./data2', 0 , 1);
unlink qw(rc1 rc2);
ok (! -d './data1' &&
! -d './data2' &&
! -r 'rc1' &&
! -r 'rc2', 'Cleanup');
exit 0