[admin] set up .gitignore files
[p5sagit/p5-mst-13.2.git] / t / Module_Pluggable / 04acmedir_single.t
CommitLineData
3f7169a2 1#!perl -w
2
3use strict;
4use FindBin;
183ac38d 5use lib (($FindBin::Bin."/lib")=~/^(.*)$/);
3f7169a2 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", search_dirs => "t/acme" ;
22
23
24sub new {
25 my $class = shift;
26 return bless {}, $class;
27
28}
291;
30