File: 01app.t

package info (click to toggle)
libmojomojo-perl 1.11%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,496 kB
  • ctags: 927
  • sloc: perl: 14,671; sh: 148; xml: 120; makefile: 8; ruby: 6
file content (15 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More tests => 3;
use lib qw 't/lib';
use MojoMojoTestSchema;

ok( MojoMojoTestSchema->init_schema(populate => 1),
    'populate test schema and create config file to be used by subsequent tests'
);
$ENV{CATALYST_CONFIG} = 't/var/mojomojo.yml';

use_ok( 'Catalyst::Test', 'MojoMojo' );

ok( request('/')->is_success, 'get the root page' );