From: Shawn M Moore Date: Fri, 17 Oct 2008 12:14:36 +0000 (+0000) Subject: Failing test for reloading an already-loaded plugin, it shouldn't throw an error X-Git-Tag: 0.0009~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4a9b5ed4867a232b1dd2fb2ea1bf5348435b39f0;p=gitmo%2FMooseX-Object-Pluggable.git Failing test for reloading an already-loaded plugin, it shouldn't throw an error --- diff --git a/t/04-reload.t b/t/04-reload.t new file mode 100644 index 0000000..c224e83 --- /dev/null +++ b/t/04-reload.t @@ -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"); +