convert tabs to spaces and set unix line endings in t/*
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / Detach.pm
index 28b0f8f..0709f48 100644 (file)
@@ -1,45 +1,45 @@
-package TestApp::Controller::Action::Detach;\r
-\r
-use strict;\r
-use base 'TestApp::Controller::Action';\r
-\r
-sub one : Local {\r
-    my ( $self, $c ) = @_;\r
-    $c->detach('two');\r
-    $c->forward('error');\r
-}\r
-\r
-sub two : Private {\r
-    my ( $self, $c ) = @_;\r
-    $c->forward('TestApp::View::Dump::Request');\r
-}\r
-\r
-sub error : Local {\r
-    my ( $self, $c ) = @_;\r
-    $c->res->output('error');\r
-}\r
-\r
-sub path : Local {\r
-    my ( $self, $c ) = @_;\r
-    $c->detach('/action/detach/two');\r
-    $c->forward('error');\r
-}\r
-\r
-sub with_args : Local {\r
-    my ( $self, $c, $orig ) = @_;\r
-    $c->detach( 'args', [qq/new/] );\r
-}\r
-\r
-sub with_method_and_args : Local {\r
-    my ( $self, $c, $orig ) = @_;\r
-    $c->detach( qw/TestApp::Controller::Action::Detach args/, [qq/new/] );\r
-}\r
-\r
-sub args : Local {\r
-    my ( $self, $c, $val ) = @_;\r
-    die "Expected argument 'new', got '$val'" unless $val eq 'new';\r
-    die "passed argument does not match args" unless $val eq $c->req->args->[0];\r
-    $c->res->body( $c->req->args->[0] );\r
-}\r
-\r
-1;\r
+package TestApp::Controller::Action::Detach;
+
+use strict;
+use base 'TestApp::Controller::Action';
+
+sub one : Local {
+    my ( $self, $c ) = @_;
+    $c->detach('two');
+    $c->forward('error');
+}
+
+sub two : Private {
+    my ( $self, $c ) = @_;
+    $c->forward('TestApp::View::Dump::Request');
+}
+
+sub error : Local {
+    my ( $self, $c ) = @_;
+    $c->res->output('error');
+}
+
+sub path : Local {
+    my ( $self, $c ) = @_;
+    $c->detach('/action/detach/two');
+    $c->forward('error');
+}
+
+sub with_args : Local {
+    my ( $self, $c, $orig ) = @_;
+    $c->detach( 'args', [qq/new/] );
+}
+
+sub with_method_and_args : Local {
+    my ( $self, $c, $orig ) = @_;
+    $c->detach( qw/TestApp::Controller::Action::Detach args/, [qq/new/] );
+}
+
+sub args : Local {
+    my ( $self, $c, $val ) = @_;
+    die "Expected argument 'new', got '$val'" unless $val eq 'new';
+    die "passed argument does not match args" unless $val eq $c->req->args->[0];
+    $c->res->body( $c->req->args->[0] );
+}
+
+1;