Trying to unfuck this branch
[catagits/Catalyst-Runtime.git] / t / lib / TestAppDoubleAutoBug.pm
diff --git a/t/lib/TestAppDoubleAutoBug.pm b/t/lib/TestAppDoubleAutoBug.pm
deleted file mode 100644 (file)
index 524ed8b..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-use strict;
-use warnings;
-
-package TestAppDoubleAutoBug;
-
-use Catalyst qw/
-    Test::Errors
-    Test::Headers
-    Test::Plugin
-/;
-
-our $VERSION = '0.01';
-
-__PACKAGE__->config( name => 'TestAppDoubleAutoBug', root => '/some/dir' );
-
-__PACKAGE__->setup;
-
-sub execute {
-    my $c      = shift;
-    my $class  = ref( $c->component( $_[0] ) ) || $_[0];
-    my $action = $_[1]->reverse();
-
-    my $method;
-
-    if ( $action =~ /->(\w+)$/ ) {
-        $method = $1;
-    }
-    elsif ( $action =~ /\/(\w+)$/ ) {
-        $method = $1;
-    }
-    elsif ( $action =~ /^(\w+)$/ ) {
-        $method = $action;
-    }
-
-    if ( $class && $method && $method !~ /^_/ ) {
-        my $executed = sprintf( "%s->%s", $class, $method );
-        my @executed = $c->response->headers->header('X-Catalyst-Executed');
-        push @executed, $executed;
-        $c->response->headers->header(
-            'X-Catalyst-Executed' => join ', ',
-            @executed
-        );
-    }
-
-    return $c->SUPER::execute(@_);
-}
-
-1;
-