Commit | Line | Data |
fbcc39ad |
1 | use strict; |
2 | use warnings; |
3 | |
4 | use FindBin; |
42da66a9 |
5 | use lib "$FindBin::Bin/../lib"; |
fbcc39ad |
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 |
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 | |
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' ); |