revert PathPrefix from trunk
Brian Cassidy [Fri, 30 Mar 2007 14:11:27 +0000 (14:11 +0000)]
Changes
lib/Catalyst/Controller.pm
t/lib/TestApp/Controller/Action/Chained/PathPrefix.pm [deleted file]
t/live_component_controller_action_chained.t

diff --git a/Changes b/Changes
index 4071083..dd6d514 100644 (file)
--- a/Changes
+++ b/Changes
@@ -14,7 +14,6 @@ This file documents the revision history for Perl extension Catalyst.
         - Added $c->request->keywords for getting the keywords (a query string with
           no parameters).
         - Sending SIGHUP to the dev server will now cause it to restart.
-        - Added PathPrefix attribute
         - Allow "0" for a path in uri_for.
 
 5.7007  2007-03-13 14:18:00
index 1e03eed..78a60a6 100644 (file)
@@ -292,11 +292,6 @@ sub _parse_MyAction_attr {
     return ( 'ActionClass', $value );
 }
 
-sub _parse_PathPrefix_attr {
-    my ( $self, $c, $name, $value ) = @_;
-    return PathPart => $self->path_prefix;
-}
-
 1;
 
 __END__
diff --git a/t/lib/TestApp/Controller/Action/Chained/PathPrefix.pm b/t/lib/TestApp/Controller/Action/Chained/PathPrefix.pm
deleted file mode 100644 (file)
index 0d3b859..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-package TestApp::Controller::Action::Chained::PathPrefix;
-
-use strict;
-use warnings;
-
-use base qw/Catalyst::Controller/;
-
-# this is kinda the same thing as: sub instance : Path {}
-# it should respond to: /action/chained/pathprefix/*
-sub instance : Chained('/') PathPrefix Args(1) { }
-
-1;
index 9fcdc48..cb4f0dc 100644 (file)
@@ -10,7 +10,7 @@ our $iters;
 
 BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
 
-use Test::More tests => 112*$iters;
+use Test::More tests => 109*$iters;
 use Catalyst::Test 'TestApp';
 
 if ( $ENV{CAT_BENCHMARK} ) {
@@ -766,22 +766,4 @@ sub run_tests {
         is( $response->content, '; ', 'Content OK' );
     }
 
-    #
-    #   PathPrefix
-    #
-    {
-        my @expected = qw[
-          TestApp::Controller::Action::Chained->begin
-          TestApp::Controller::Action::Chained::PathPrefix->instance
-          TestApp::Controller::Action::Chained->end
-        ];
-
-        my $expected = join( ", ", @expected );
-
-        ok( my $response = request('http://localhost/action/chained/pathprefix/1'),
-            "PathPrefix (as an endpoint)" );
-        is( $response->header('X-Catalyst-Executed'),
-            $expected, 'Executed actions' );
-        is( $response->content, '; 1', 'Content OK' );
-    }
 }