#!/usr/bin/env perl
use v5.10;
use strict;
my $repo = File::Spec->rel2abs(
File::Spec->catdir( dirname( __FILE__ ), 'repo' ),
);
my $repo_url = "file://$repo/otrs.xml";
my $file = OPM::Installer::Utils::File->new(
repositories => [ $repo_url ],
package => 'TicketOverviewHooked',
framework_version => '5.0.20',
rc_config => {},
);
isa_ok $file, 'OPM::Installer::Utils::File';
my $path = $file->resolve_path;
is -s $path, -s "$repo/TicketOverviewHooked-5.0.6.opm";
done_testing();