put Catalyst::Plugin::Test::MangleDollarUnderScore into a better namespace
[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
083ee5d9 18 TestApp::Plugin::AddDispatchTypes
836e1134 19 TestApp::Plugin::FullyQualified
fbcc39ad 20];
21
22my $expected = join( ", ", @expected );
23
24ok( my $response = request('http://localhost/dump/request'), 'Request' );
25ok( $response->is_success, 'Response Successful 2xx' );
26is( $response->content_type, 'text/plain', 'Response Content-Type' );
27like( $response->content, qr/'Catalyst::Request'/,
28 'Content is a serialized Catalyst::Request' );
29is( $response->header('X-Catalyst-Plugins'), $expected, 'Loaded plugins' );