50684f1f69534f701daca246f4b3a22df1835e03
[catagits/Catalyst-Runtime.git] / t / aggregate / live_view_warnings.t
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' );
18
19     like($TestAppViewWarnings::log_messages[0], qr/Calling \$c->view\(\) is not supported/s, 'View failure warning received');
20
21 }
22
23 done_testing;
24