From: Florian Ragwitz Date: Thu, 19 Feb 2009 01:28:58 +0000 (+0000) Subject: Don't set up the moose controller unless Moose is available. X-Git-Tag: 5.71001~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=7289922b016e36af1b5a9e656fe4b8fa776180e9 Don't set up the moose controller unless Moose is available. --- diff --git a/t/lib/TestApp.pm b/t/lib/TestApp.pm index 7c203b0..d903b3c 100644 --- a/t/lib/TestApp.pm +++ b/t/lib/TestApp.pm @@ -14,6 +14,10 @@ our $VERSION = '0.01'; TestApp->config( name => 'TestApp', root => '/some/dir' ); +unless (eval 'require Moose; 1') { + TestApp->config(setup_components => { except => 'TestApp::Controller::Moose' }); +} + TestApp->setup; sub index : Private {