Failing test for reloading an already-loaded plugin, it shouldn't throw an error
Shawn M Moore [Fri, 17 Oct 2008 12:14:36 +0000 (12:14 +0000)]
t/04-reload.t [new file with mode: 0644]

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");
+