Move Module::Pluggable tests up under main test directory.
[p5sagit/p5-mst-13.2.git] / t / Module_Pluggable / 05postpath.t
1 #!perl -w
2
3 use strict;
4 use FindBin;
5 use lib "$FindBin::Bin/lib";
6 use Test::More tests => 3;
7
8
9 my $foo;
10 ok($foo = MyTest->new());
11
12 my @plugins;
13 my @expected = qw(MyTest::Extend::Plugin::Bar);
14 ok(@plugins = sort $foo->plugins);
15 is_deeply(\@plugins, \@expected);
16
17
18
19 package MyTest;
20 use File::Spec::Functions qw(catdir);
21 use strict;
22 use Module::Pluggable (search_path => ["MyTest::Extend::Plugin"]);
23
24
25 sub new {
26     my $class = shift;
27     return bless {}, $class;
28
29 }
30 1;
31