blob: 66c54ddcf45ecae86d832d5d926c91f322b3231b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/usr/bin/perl
use strict;
use warnings;
use 5.014;
use Test::More;
use Test::DZil;
use Test::Version qw( version_ok );
use Path::Tiny qw( path );
package Dist::Zilla::Plugin::MyVersionProvider {
use Moose;
with 'Dist::Zilla::Role::VersionProvider';
sub provide_version
{
'1.00';
}
}
my $tzil = Builder->from_config({ dist_root => 'corpus/version_provider' });
$tzil->build;
version_ok( path($tzil->tempdir)->child('build/lib/DZT0.pm'));
done_testing;
|