The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#
# This file is part of Dist-Zilla-Role-EnsureStash
#
# This software is Copyright (c) 2012 by Chris Weyl.
#
# This is free software, licensed under:
#
#   The GNU Lesser General Public License, Version 2.1, February 1999
#
package Dist::Zilla::Plugin::TestAddStash;

use Moose;
use namespace::autoclean;

use aliased 'Dist::Zilla::Stash::TestStash';

with
    'Dist::Zilla::Role::BeforeRelease',
    'Dist::Zilla::Role::EnsureStash',
    ;

use Test::More;
use Test::Moose::More;

sub our_stash_name  { '%TestStash' }
sub our_stash_class {   TestStash  }

sub before_release {
    my $self = shift @_;

    # add stash
    pass 'in before_release()';

    my $stash = $self->our_stash;
    does_ok $stash, 'Dist::Zilla::Role::Stash';
    isa_ok  $stash, TestStash;

    return;
}


__PACKAGE__->meta->make_immutable;
!!42;
__END__