Move aggregatable tests using TestApp to t/aggregate.
[catagits/Catalyst-Runtime.git] / t / aggregate / live_engine_setup_plugins.t
diff --git a/t/aggregate/live_engine_setup_plugins.t b/t/aggregate/live_engine_setup_plugins.t
new file mode 100644 (file)
index 0000000..419982b
--- /dev/null
@@ -0,0 +1,16 @@
+#!perl
+
+use strict;
+use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/../lib";
+
+use Test::More tests => 2;
+use Catalyst::Test 'TestApp';
+
+{
+  # Allow overriding automatic root.
+    ok( my $response = request('http://localhost/engine/response/headers/one'), 'Request' );
+    is( $response->header('X-Catalyst-Plugin-Setup'), '1' );
+}