From 453c066abf89433acffbb479abd61e78b3610dda Mon Sep 17 00:00:00 2001 From: swag Date: Sun, 19 Dec 2021 22:43:42 -0500 Subject: [PATCH] Use the DB for form test --- t/basic.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/basic.t b/t/basic.t index 83a4970..7ad1658 100644 --- a/t/basic.t +++ b/t/basic.t @@ -11,12 +11,12 @@ my $t = Test::Mojo->new($script); my %form = ( name => 'swagg boi', message => 'Ayy... lmao', - answer => 0 + answer => 'false' ); $t->get_ok('/')->status_is(200) - ->text_is('h2', 'Messages from the World Wide Web'); -$t->get_ok('/sign')->status_is(200)->text_is('h2', 'Sign the Guestbook'); + ->text_is(h2 => 'Messages from the World Wide Web'); +$t->get_ok('/sign')->status_is(200)->text_is(h2 => 'Sign the Guestbook'); $t->post_ok('/sign', form => \%form)->status_is(302); done_testing();