Commit | Line | Data |
4d723d12 |
1 | #!perl |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | use FindBin; |
7 | use lib "$FindBin::Bin/../lib"; |
8 | |
9 | use Test::More; |
10 | use Catalyst::Test 'TestAppViewWarnings'; |
11 | |
12 | if ( $ENV{CATALYST_SERVER} ) { |
13 | plan skip_all => 'Using remote server'; |
14 | } |
15 | |
16 | { |
17 | ok( my $response = request('http://localhost/'), 'Request' ); |
98de08f6 |
18 | |
c93c85c4 |
19 | like($TestAppViewWarnings::log_messages[0], qr/Calling \$c->view\(\) is not supported/s, 'View failure warning received'); |
4d723d12 |
20 | |
21 | } |
22 | |
23 | done_testing; |
24 | |