Merge branch 'master' into gsoc_breadboard
[catagits/Catalyst-Runtime.git] / t / aggregate / live_mvc_warnings.t
CommitLineData
9e981d5f 1use strict;
2use warnings;
3
4use FindBin;
5use lib "$FindBin::Bin/../lib";
6
7use Test::More;
8use Catalyst::Test 'TestAppMVCWarnings';
9
10if ( $ENV{CATALYST_SERVER} ) {
11 plan skip_all => 'Using remote server';
12}
13
14{
15 ok( request('http://localhost/view'), 'Request' );
16 like($TestAppMVCWarnings::log_messages[0], qr/Calling \$c->view\(\) is not supported/s, 'View failure warning received');
17
18 @TestAppMVCWarnings::log_messages = ();
19
20 ok( request('http://localhost/model'), 'Request' );
21 like($TestAppMVCWarnings::log_messages[0], qr/Calling \$c->model\(\) is not supported/s, 'Model failure warning received');
22}
23
24done_testing;
25