use strict;
+use Catalyst::Exception;
use Catalyst::Utils;
use UNIVERSAL::require;
get('index.html');
# Run tests against a remote server
- CATALYST_SERVER='http://localhost:3000/' prove -l lib/ t/
+ CATALYST_SERVER='http://localhost:3000/' prove -r -l lib/ t/
# Tests with inline apps need to use Catalyst::Engine::Test
package TestApp;
else {
$class->require;
- my $error = $UNIVERSAL::require::ERROR;
- die qq/Couldn't load "$class", "$error"/ if $@;
+
+ if ( $@ ) {
+
+ my $error = $UNIVERSAL::require::ERROR;
+
+ Catalyst::Exception->throw(
+ message => qq/Couldn't load "$class", "$error"/
+ );
+ }
$class->import;
=item remote_request
-Do an actual remote rquest using LWP.
+Do an actual remote request using LWP.
=cut