Moar tests

This commit is contained in:
swag 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();