]> iEval git - apache2-authen-passphrase.git/blobdiff - t/Apache2-Authen-Passphrase.t
Fix indentation
[apache2-authen-passphrase.git] / t / Apache2-Authen-Passphrase.t
index b27498b1921ca5cb1a9b4fceffbcf31eb81db617..820b84393a19c2f305b9fcdd986c31cc9cf12711 100644 (file)
@@ -4,22 +4,19 @@ use warnings;
 
 use File::Temp qw/tempdir/;
 use Test::More tests => 7;
+BEGIN { $ENV{AAP_ROOTDIR} = tempdir CLEANUP => 1 }
 BEGIN { use_ok('Apache2::Authen::Passphrase', qw/pwset pwcheck/) };
 
-my $tempdir = tempdir CLEANUP => 1;
-mkdir "$tempdir/us";
-$Apache2::Authen::Passphrase::rootdir = $tempdir;
-
 sub pw_ok {
-  my ($user, $pass, $testname) = @_;
-  eval { pwcheck $user, $pass };
-  is $@, '', $testname;
+       my ($user, $pass, $testname) = @_;
+       eval { pwcheck $user, $pass };
+       is $@, '', $testname;
 }
 
 sub pw_nok {
-  my ($user, $pass, $testname) = @_;
-  eval { pwcheck $user, $pass };
-  isnt $@, '', $testname;
+       my ($user, $pass, $testname) = @_;
+       eval { pwcheck $user, $pass };
+       isnt $@, '', $testname;
 }
 
 pwset marius => 'password';
This page took 0.023049 seconds and 4 git commands to generate.