]> ruin.nu Git - ndwebbie.git/blobdiff - script/ndweb_test.pl
Merge updates from new catalyst.pl
[ndwebbie.git] / script / ndweb_test.pl
index adfe2f3d7a9c21f7a6ed51aff03e3e1c2f1caf86..9b7ec40c67f46cd70c8128ce43486836998b4688 100755 (executable)
@@ -1,20 +1,7 @@
 #!/usr/bin/env perl
 
-use strict;
-use warnings;
-use Getopt::Long;
-use Pod::Usage;
-use FindBin;
-use lib "$FindBin::Bin/../lib";
-use Catalyst::Test 'NDWeb';
-
-my $help = 0;
-
-GetOptions( 'help|?' => \$help );
-
-pod2usage(1) if ( $help || !$ARGV[0] );
-
-print request($ARGV[0])->content . "\n";
+use Catalyst::ScriptRunner;
+Catalyst::ScriptRunner->run('NDWeb', 'Test');
 
 1;
 
@@ -27,7 +14,7 @@ ndweb_test.pl - Catalyst Test
 ndweb_test.pl [options] uri
 
  Options:
-   -help    display this help and exits
+   --help    display this help and exits
 
  Examples:
    ndweb_test.pl http://localhost/some_action