Commit | Line | Data |
fbcc39ad |
1 | #!perl |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | use FindBin; |
42da66a9 |
7 | use lib "$FindBin::Bin/../lib"; |
fbcc39ad |
8 | |
9 | use Test::More tests => 5; |
10 | use Catalyst::Test 'TestApp'; |
11 | |
12 | my @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 | |
22 | my $expected = join( ", ", @expected ); |
23 | |
24 | ok( my $response = request('http://localhost/dump/request'), 'Request' ); |
25 | ok( $response->is_success, 'Response Successful 2xx' ); |
26 | is( $response->content_type, 'text/plain', 'Response Content-Type' ); |
27 | like( $response->content, qr/'Catalyst::Request'/, |
28 | 'Content is a serialized Catalyst::Request' ); |
29 | is( $response->header('X-Catalyst-Plugins'), $expected, 'Loaded plugins' ); |