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