X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FStreaming.pm;h=a5b2c81b980961e0798eaeac85329fbee183293c;hb=eebd1520470f767fdefdc03c1fe05427e5f182f9;hp=08c7c6547a0d679d39c5798f09af3521543c5c02;hpb=a9b467d3d36fc47a5fc63b5c8b13141b89bc9fd7;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Action/Streaming.pm b/t/lib/TestApp/Controller/Action/Streaming.pm index 08c7c65..a5b2c81 100644 --- a/t/lib/TestApp/Controller/Action/Streaming.pm +++ b/t/lib/TestApp/Controller/Action/Streaming.pm @@ -27,6 +27,19 @@ sub body : Local { } } +sub body_glob : Local { + my ( $self, $c ) = @_; + + my $file = "$FindBin::Bin/../lib/TestApp/Controller/Action/Streaming.pm"; + open my $fh, '<', $file; + if ( defined $fh ) { + $c->res->body( $fh ); + } + else { + $c->res->body( "Unable to read $file" ); + } +} + sub body_large : Local { my ($self, $c) = @_;