You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
304 B

use strict;
use warnings;
use MyWeb::App;
use Test::More tests => 2;
use Plack::Test;
use HTTP::Request::Common;
my $app = MyWeb::App->to_app;
is( ref $app, 'CODE', 'Got app' );
my $test = Plack::Test->create($app);
my $res = $test->request( GET '/' );
ok( $res->is_success, '[GET /] successful' );