2021-12-04 08:06:03 +00:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use Test::More;
|
|
|
|
use Mojo::File qw{curfile};
|
|
|
|
use Test::Mojo;
|
|
|
|
|
|
|
|
my $script = curfile->dirname->sibling('guestbook-ng.pl');
|
|
|
|
my $t = Test::Mojo->new($script);
|
|
|
|
|
|
|
|
# Just make sure we get a 200 OK for now
|
|
|
|
$t->get_ok('/')->status_is(200);
|
|
|
|
$t->get_ok('/test')->status_is(200);
|
2021-12-04 18:41:21 +00:00
|
|
|
$t->post_ok('/test', form => {string => 'a'})->status_is(200);
|
2021-12-04 08:06:03 +00:00
|
|
|
|
|
|
|
done_testing();
|