Task7/TestProject/t/002_index_route.t
2023-11-08 14:23:03 +03:00

16 lines
336 B
Perl

use strict;
use warnings;
use TestProject;
use Test::More tests => 2;
use Plack::Test;
use HTTP::Request::Common;
use Ref::Util qw<is_coderef>;
my $app = TestProject->to_app;
ok( is_coderef($app), 'Got app' );
my $test = Plack::Test->create($app);
my $res = $test->request( GET '/' );
ok( $res->is_success, '[GET /] successful' );