Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (18 sloc) 0.543 kb
use strict;
use warnings;
use Test::More;
use File::Basename qw/fileparse/;
use File::Temp;
use File::chdir;
use Alien::Base::ModuleBuild::Repository::Local;
my $repo = Alien::Base::ModuleBuild::Repository::Local->new({ location => 't' });
my @files = $repo->list_files;
my $this_file = fileparse __FILE__;
ok( grep { $_ eq $this_file } @files, "found this file" );
{
my $tempdir = File::Temp->newdir;
local $CWD = "$tempdir";
$repo->get_file($this_file);
ok( -e $this_file, "copied this file to temp dir" );
}
done_testing;
Jump to Line
Something went wrong with that request. Please try again.