Add test - custom error class is causing a warning from make_immutable
[gitmo/Moose.git] / inc / TestRelease.pm
CommitLineData
d9290b4f 1package inc::TestRelease;
2
3use Moose;
4
5extends 'Dist::Zilla::Plugin::TestRelease';
6
7around before_release => sub {
8 my $orig = shift;
9 my $self = shift;
10
11 local $ENV{MOOSE_TEST_MD} = $self->zilla->is_trial
12 ? $ENV{MOOSE_TEST_MD}
13 : 1;
19b51e06 14 local $ENV{AUTHOR_TESTING} = $self->zilla->is_trial
15 ? $ENV{AUTHOR_TESTING}
16 : 1;
d9290b4f 17
18 $self->$orig(@_);
19};
20
211;