PoorBooru/t/002_index_route.t

17 lines
332 B
Perl
Raw Normal View History

2023-02-18 10:49:05 +01:00
use strict;
use warnings;
use PoorBooru;
use Test::More tests => 2;
use Plack::Test;
use HTTP::Request::Common;
use Ref::Util qw<is_coderef>;
my $app = PoorBooru->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' );