Commit | Line | Data |
fbcc39ad |
1 | #!perl |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | use FindBin; |
a2e038a1 |
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 |
15 | Catalyst::Plugin::Test::Plugin |
836e1134 |
16 | TestApp::Plugin::FullyQualified |
fbcc39ad |
17 | ]; |
18 | |
19 | my $expected = join( ", ", @expected ); |
20 | |
21 | ok( my $response = request('http://localhost/dump/request'), 'Request' ); |
22 | ok( $response->is_success, 'Response Successful 2xx' ); |
23 | is( $response->content_type, 'text/plain', 'Response Content-Type' ); |
24 | like( $response->content, qr/'Catalyst::Request'/, |
25 | 'Content is a serialized Catalyst::Request' ); |
26 | is( $response->header('X-Catalyst-Plugins'), $expected, 'Loaded plugins' ); |