show the first line here when testing with a harness
[gitmo/Moose.git] / t / bugs / delete_sub_stash.t
CommitLineData
9b2ef039 1#!/usr/bin/env perl
2use strict;
3use warnings;
4use Test::More;
5
6use Moose ();
7
8{
9 package Foo;
10 sub bar { 'BAR' }
11}
12
13my $method = \&Foo::bar;
14
15{
16 no strict 'refs';
17 delete ${'::'}{'Foo::'};
18}
19
20my $meta = Moose::Meta::Class->create('Bar');
21$meta->add_method(bar => $method);
22is(Bar->bar, 'BAR');
23
24done_testing;