summaryrefslogtreecommitdiff
path: root/lib/Module/Pluggable/t/06multipath.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Module/Pluggable/t/06multipath.t')
-rw-r--r--lib/Module/Pluggable/t/06multipath.t33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/Module/Pluggable/t/06multipath.t b/lib/Module/Pluggable/t/06multipath.t
new file mode 100644
index 0000000000..4c9a16b589
--- /dev/null
+++ b/lib/Module/Pluggable/t/06multipath.t
@@ -0,0 +1,33 @@
+#!perl -w
+
+use strict;
+use FindBin;
+use lib "$FindBin::Bin/lib";
+use Test::More tests => 3;
+
+
+my $foo;
+ok($foo = MyTest->new());
+
+my @plugins;
+my @expected = qw(Acme::MyTest::Plugin::Foo MyTest::Extend::Plugin::Bar);
+ok(@plugins = sort $foo->plugins);
+
+is_deeply(\@plugins, \@expected);
+
+
+
+package MyTest;
+use File::Spec::Functions qw(catdir);
+use strict;
+use File::Spec::Functions qw(catdir);
+use Module::Pluggable (search_path => ["MyTest::Extend::Plugin", "Acme::MyTest::Plugin"]);
+
+
+sub new {
+ my $class = shift;
+ return bless {}, $class;
+
+}
+1;
+