added Test::Pod support
[catagits/Catalyst-Runtime.git] / t / 08headers.t
CommitLineData
fc7ec1d9 1package TestApp;
2
e05c5e3c 3use Catalyst qw[-Engine=Test];
fc7ec1d9 4
5__PACKAGE__->action(
6 foo => sub {
7 my ( $self, $c ) = @_;
8 $c->res->headers->header( 'X-Foo' => 'Bar' );
9 }
10);
11
12package main;
13
14use Test::More tests => 1;
15use Catalyst::Test 'TestApp';
16
17ok( request('/foo')->header('X-Foo') );