added Test::Pod support
[catagits/Catalyst-Runtime.git] / t / 08headers.t
diff --git a/t/08headers.t b/t/08headers.t
new file mode 100644 (file)
index 0000000..70288f9
--- /dev/null
@@ -0,0 +1,17 @@
+package TestApp;
+
+use Catalyst qw[-Engine=Test];
+
+__PACKAGE__->action(
+    foo => sub {
+        my ( $self, $c ) = @_;
+        $c->res->headers->header( 'X-Foo' => 'Bar' );
+    }
+);
+
+package main;
+
+use Test::More tests => 1;
+use Catalyst::Test 'TestApp';
+
+ok( request('/foo')->header('X-Foo') );