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