Failing test for reloading an already-loaded plugin, it shouldn't throw an error
[gitmo/MooseX-Object-Pluggable.git] / t / 04-reload.t
diff --git a/t/04-reload.t b/t/04-reload.t
new file mode 100644 (file)
index 0000000..c224e83
--- /dev/null
@@ -0,0 +1,16 @@
+#!/usr/local/bin/perl
+
+use strict;
+use warnings;
+use Test::More;
+use lib 't/lib';
+
+plan tests => 3;
+
+use_ok('TestApp');
+
+my $app = TestApp->new;
+
+ok($app->load_plugin('Bar'), "Loaded Bar");
+ok(!$app->load_plugin('Bar'), "Didn't load Bar because we already had it");
+