Use the DB for form test
This commit is contained in:
parent
07353e7d7e
commit
453c066abf
|
@ -11,12 +11,12 @@ my $t = Test::Mojo->new($script);
|
||||||
my %form = (
|
my %form = (
|
||||||
name => 'swagg boi',
|
name => 'swagg boi',
|
||||||
message => 'Ayy... lmao',
|
message => 'Ayy... lmao',
|
||||||
answer => 0
|
answer => 'false'
|
||||||
);
|
);
|
||||||
|
|
||||||
$t->get_ok('/')->status_is(200)
|
$t->get_ok('/')->status_is(200)
|
||||||
->text_is('h2', 'Messages from the World Wide Web');
|
->text_is(h2 => 'Messages from the World Wide Web');
|
||||||
$t->get_ok('/sign')->status_is(200)->text_is('h2', 'Sign the Guestbook');
|
$t->get_ok('/sign')->status_is(200)->text_is(h2 => 'Sign the Guestbook');
|
||||||
$t->post_ok('/sign', form => \%form)->status_is(302);
|
$t->post_ok('/sign', form => \%form)->status_is(302);
|
||||||
|
|
||||||
done_testing();
|
done_testing();
|
||||||
|
|
Loading…
Reference in a new issue