why not just add to the maddness if its already there?
[catagits/Catalyst-Runtime.git] / t / aggregate / live_plugin_loaded.t
CommitLineData
fbcc39ad 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin;
42da66a9 7use lib "$FindBin::Bin/../lib";
fbcc39ad 8
9use Test::More tests => 5;
10use Catalyst::Test 'TestApp';
11
12my @expected = qw[
13 Catalyst::Plugin::Test::Errors
14 Catalyst::Plugin::Test::Headers
d13a7137 15 Catalyst::Plugin::Test::Inline
3d101ef9 16 Catalyst::Plugin::Test::MangleDollarUnderScore
fbcc39ad 17 Catalyst::Plugin::Test::Plugin
55046410 18 Catalyst::Plugin::Unicode::Encoding
083ee5d9 19 TestApp::Plugin::AddDispatchTypes
836e1134 20 TestApp::Plugin::FullyQualified
fbcc39ad 21];
22
23my $expected = join( ", ", @expected );
24
25ok( my $response = request('http://localhost/dump/request'), 'Request' );
26ok( $response->is_success, 'Response Successful 2xx' );
27is( $response->content_type, 'text/plain', 'Response Content-Type' );
28like( $response->content, qr/'Catalyst::Request'/,
29 'Content is a serialized Catalyst::Request' );
30is( $response->header('X-Catalyst-Plugins'), $expected, 'Loaded plugins' );