Moar tests

This commit is contained in:
swagg boi 2022-04-08 15:56:06 -04:00
parent d27945b2b3
commit c9ffdd4760
2 changed files with 6 additions and 0 deletions

View file

@ -15,5 +15,8 @@ $t->get_ok('/spam')->status_is(200)
->text_is(h2 => 'Messages from the World Wide Web');
$t->get_ok('/spam/1')->status_is(200)
->text_is(h2 => 'Messages from the World Wide Web');
# Page shouldn't exist (unless Guestbook gets very popular!)
$t->get_ok('/spam/1337')->status_is(404)
->text_is(h2 => 'Messages from the World Wide Web');
done_testing();

View file

@ -15,5 +15,8 @@ $t->get_ok('/view')->status_is(200)
->text_is(h2 => 'Messages from the World Wide Web');
$t->get_ok('/view/1')->status_is(200)
->text_is(h2 => 'Messages from the World Wide Web');
# Page shouldn't exist (unless Guestbook gets very popular!)
$t->get_ok('/view/1337')->status_is(404)
->text_is(h2 => 'Messages from the World Wide Web');
done_testing();