1. Toby Inkster
  2. p5-web-id

Commits

Toby Inkster  committed 14c18b5

remove usage of Path::Class from test case

  • Participants
  • Parent commits d02068e
  • Branches default

Comments (0)

Files changed (1)

File t/04webid.t

View file
 use lib 't/lib';
 
 use File::Temp qw();
-use Path::Class qw();
+use Path::Tiny qw();
 use Test::More;
 use Web::ID;
 use Web::ID::Certificate::Generator;
 our @PEOPLE = qw(alice bob carol david eve);
 our %Certificates;
 
-my $tmpdir = Path::Class::Dir->new( File::Temp->newdir );
+my $tmpdir = "Path::Tiny"->tempdir;
 $tmpdir->mkpath;
 
 sub tmpfile
 {
-	return $tmpdir->file(@_) if @_;
+	return $tmpdir->child(@_) if @_;
 	return $tmpdir;
 }
 
 my $eve = Web::ID->new(certificate => $Certificates{eve});
 ok(!$eve->valid, 'eve is evil!');
 
-tmpfile()->rmtree;
+tmpfile()->remove_tree;