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